This repository has been archived on 2022-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
Marlin-Artillery-M600/Marlin/BlinkM.cpp

30 lines
557 B
C++
Raw Normal View History

2013-09-10 11:18:29 +02:00
/*
BlinkM.cpp - Library for controlling a BlinkM over i2c
Created by Tim Koster, August 21 2013.
*/
2013-10-20 10:06:02 +02:00
#include "Marlin.h"
2013-10-20 09:55:15 +02:00
#ifdef BLINKM
2013-09-10 11:18:29 +02:00
#if (ARDUINO >= 100)
# include "Arduino.h"
#else
# include "WProgram.h"
#endif
2013-09-10 11:18:29 +02:00
#include "BlinkM.h"
void SendColors(byte red, byte grn, byte blu)
{
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 09:55:15 +02:00
#endif //BLINKM