1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-25 04:48:31 +00:00
MarlinFirmware/Marlin/blinkm.cpp

24 lines
479 B
C++
Raw Normal View History

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