2013-09-10 04:18:29 -05:00
|
|
|
/*
|
2015-04-25 23:04:54 -05:00
|
|
|
blinkm.cpp - Library for controlling a BlinkM over i2c
|
2013-09-10 04:18:29 -05:00
|
|
|
Created by Tim Koster, August 21 2013.
|
|
|
|
*/
|
2013-10-20 03:06:02 -05:00
|
|
|
#include "Marlin.h"
|
2015-07-31 00:21:18 -05:00
|
|
|
|
|
|
|
#if ENABLED(BLINKM)
|
2013-10-20 02:55:15 -05:00
|
|
|
|
2015-04-25 23:04:54 -05:00
|
|
|
#include "blinkm.h"
|
2013-09-10 04:18:29 -05:00
|
|
|
|
2015-03-02 09:06:01 -06:00
|
|
|
void SendColors(byte red, byte grn, byte blu) {
|
2013-09-10 04:18:29 -05:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
2013-10-20 02:55:15 -05:00
|
|
|
#endif //BLINKM
|
|
|
|
|