Encapsulate RGB(W) LEDs

This commit is contained in:
Scott Lahteine
2017-09-08 14:47:47 -05:00
parent a98e9874db
commit 8fbb833de9
15 changed files with 530 additions and 380 deletions

View File

@@ -25,20 +25,20 @@
* Created by Tim Koster, August 21 2013.
*/
#include "../../Marlin.h"
#include "../../inc/MarlinConfig.h"
#if ENABLED(BLINKM)
#include "blinkm.h"
void SendColors(byte red, byte grn, byte blu) {
void blinkm_set_led_color(const byte r, const byte g, const byte b) {
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.write(r);
Wire.write(g);
Wire.write(b);
Wire.endTransmission();
}