diff --git a/source/irlicht.ino b/source/irlicht.ino index baf9e21..bbfe741 100644 --- a/source/irlicht.ino +++ b/source/irlicht.ino @@ -1,4 +1,5 @@ #include +#include #define LED_WHITE 5 #define LED_GREEN 6 @@ -35,10 +36,11 @@ #define IR_KEY_LIGHT16 0xF7E01F int leds[] = {LED_WHITE, LED_GREEN, LED_BLUE, LED_RED}; -int white = 0x80; +int white = 0x01; IRrecv irrecv(IR_PIN); decode_results results; +simtronyx_RGB_LED strip(LED_RED, LED_GREEN, LED_BLUE); void setup() { for (int i = 0; i < 4; i++) { @@ -48,9 +50,15 @@ void setup() { analogWrite(LED_WHITE, white); Serial.begin(9600); irrecv.enableIRIn(); // Start the receiver + + strip.animateColorAdd(255,0,0,100); + strip.animateColorAdd(0,255,0,100); + strip.animateColorAdd(0,0,255,100); + strip.animateStart(); } void loop() { + strip.loop(); if (irrecv.decode(&results)) { if (results.decode_type == IR_PROTOCOL) { if (results.value != 0xFFFFFFFF) {