You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
473 B
23 lines
473 B
11 years ago
|
/*
|
||
10 years ago
|
blinkm.cpp - Library for controlling a BlinkM over i2c
|
||
11 years ago
|
Created by Tim Koster, August 21 2013.
|
||
|
*/
|
||
11 years ago
|
#include "Marlin.h"
|
||
11 years ago
|
#ifdef BLINKM
|
||
|
|
||
10 years ago
|
#include "blinkm.h"
|
||
11 years ago
|
|
||
10 years ago
|
void SendColors(byte red, byte grn, byte blu) {
|
||
11 years ago
|
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();
|
||
|
}
|
||
|
|
||
11 years ago
|
#endif //BLINKM
|
||
|
|