removed serial debug output

This commit is contained in:
Ronald Schaten 2014-04-24 23:23:01 +02:00
parent 89a08e3066
commit cd50362684

View File

@ -58,18 +58,18 @@ void loop() {
if (results.decode_type == IR_PROTOCOL) {
if (results.value != 0xFFFFFFFF) {
//if (results.value & IR_MASK == IR_FILTER) {
Serial.println(results.value);
switch (results.value) {
case IR_KEY_1: Serial.println("key 1"); strip.animateStop(); analogWrite(LED_RED, 0x00); break;
case IR_KEY_2: Serial.println("key 2"); strip.animateStop(); analogWrite(LED_GREEN, 0x00); break;
case IR_KEY_3: Serial.println("key 3"); strip.animateStop(); analogWrite(LED_BLUE, 0x00); break;
case IR_KEY_4: Serial.println("key 4"); strip.animateStop(); analogWrite(LED_RED, 0x80); break;
case IR_KEY_5: Serial.println("key 5"); strip.animateStop(); analogWrite(LED_GREEN, 0x80); break;
case IR_KEY_6: Serial.println("key 6"); strip.animateStop(); analogWrite(LED_BLUE, 0x80); break;
case IR_KEY_7: Serial.println("key 7"); strip.animateStop(); analogWrite(LED_RED, 0xFF); break;
case IR_KEY_8: Serial.println("key 8"); strip.animateStop(); analogWrite(LED_GREEN, 0xFF); break;
case IR_KEY_9: Serial.println("key 9"); strip.animateStop(); analogWrite(LED_BLUE, 0xFF); break;
case IR_KEY_1: strip.animateStop(); analogWrite(LED_RED, 0x00); break;
case IR_KEY_2: strip.animateStop(); analogWrite(LED_GREEN, 0x00); break;
case IR_KEY_3: strip.animateStop(); analogWrite(LED_BLUE, 0x00); break;
case IR_KEY_4: strip.animateStop(); analogWrite(LED_RED, 0x80); break;
case IR_KEY_5: strip.animateStop(); analogWrite(LED_GREEN, 0x80); break;
case IR_KEY_6: strip.animateStop(); analogWrite(LED_BLUE, 0x80); break;
case IR_KEY_7: strip.animateStop(); analogWrite(LED_RED, 0xFF); break;
case IR_KEY_8: strip.animateStop(); analogWrite(LED_GREEN, 0xFF); break;
case IR_KEY_9: strip.animateStop(); analogWrite(LED_BLUE, 0xFF); break;
case IR_KEY_FADE:
Serial.println("fading");
strip.animateColorAdd(255, 0, 0, 100);
strip.animateColorAdd(255, 255, 0, 100);
strip.animateColorAdd( 0, 255, 0, 100);
@ -83,8 +83,6 @@ void loop() {
if (white < 0x00) {
white = 0x00;
}
Serial.print("-white: ");
Serial.println(white, HEX);
analogWrite(LED_WHITE, white);
break;
case IR_KEY_BRIGHT:
@ -92,8 +90,6 @@ void loop() {
if (white > 0xFF) {
white = 0xFF;
}
Serial.print("+white: ");
Serial.println(white, HEX);
analogWrite(LED_WHITE, white);
break;
default: