Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
michalprusa committed Jul 22, 2016
0 parents commit 30f0528
Show file tree
Hide file tree
Showing 87 changed files with 113,833 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Firmware/BlinkM.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
BlinkM.cpp - Library for controlling a BlinkM over i2c
Created by Tim Koster, August 21 2013.
*/
#include "Marlin.h"
#ifdef BLINKM

#if (ARDUINO >= 100)
# include "Arduino.h"
#else
# include "WProgram.h"
#endif

#include "BlinkM.h"

void SendColors(byte red, byte grn, byte blu)
{
Wire.begin();
Wire.beginTransmission(0x09);
Wire.write('o'); //to disable ongoing script, only needs to be used once
Wire.write('n');
Wire.write(red);
Wire.write(grn);
Wire.write(blu);
Wire.endTransmission();
}

#endif //BLINKM

14 changes: 14 additions & 0 deletions Firmware/BlinkM.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
BlinkM.h
Library header file for BlinkM library
*/
#if (ARDUINO >= 100)
# include "Arduino.h"
#else
# include "WProgram.h"
#endif

#include "Wire.h"

void SendColors(byte red, byte grn, byte blu);

Loading

0 comments on commit 30f0528

Please sign in to comment.