Rename blinkm files
This commit is contained in:
parent
a22a228bcc
commit
0ec444720f
2 changed files with 0 additions and 0 deletions
22
Marlin/blinkm.cpp
Normal file
22
Marlin/blinkm.cpp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
blinkm.cpp - Library for controlling a BlinkM over i2c
|
||||
Created by Tim Koster, August 21 2013.
|
||||
*/
|
||||
#include "Marlin.h"
|
||||
#ifdef BLINKM
|
||||
|
||||
#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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue