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