Reverted - same problem again
This commit is contained in:
@@ -1257,26 +1257,14 @@ light:
|
|||||||
update_interval: 3600s
|
update_interval: 3600s
|
||||||
lambda: |-
|
lambda: |-
|
||||||
id(arduino_uart).write_str("DFLASH 0 3 255 0 0\n");
|
id(arduino_uart).write_str("DFLASH 0 3 255 0 0\n");
|
||||||
|
on_turn_off:
|
||||||
|
- lambda: |-
|
||||||
|
id(arduino_uart).write_str("LED 0 3 0 0 0\n");
|
||||||
on_state:
|
on_state:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
if (!id(gauge0_red_indicator).remote_values.is_on()) {
|
if (!id(gauge0_red_indicator).remote_values.is_on()) return;
|
||||||
id(arduino_uart).write_str("LED 0 3 0 0 0\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
auto effect = id(gauge0_red_indicator).get_effect_name();
|
auto effect = id(gauge0_red_indicator).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 0 3 800 800 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 0 3 150 150 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 0 3 100 400 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 0 3 3000 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 0 3 1200 255 0 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 0 3 255 0 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 0 3 255 0 0\n");
|
id(arduino_uart).write_str("LED 0 3 255 0 0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1323,19 +1311,7 @@ light:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto effect = id(gauge0_green_indicator).get_effect_name();
|
auto effect = id(gauge0_green_indicator).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 0 4 800 800 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 0 4 150 150 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 0 4 100 400 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 0 4 3000 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 0 4 1200 0 255 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 0 4 0 255 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 0 4 0 255 0\n");
|
id(arduino_uart).write_str("LED 0 4 0 255 0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1382,19 +1358,7 @@ light:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto effect = id(gauge0_status_red).get_effect_name();
|
auto effect = id(gauge0_status_red).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 0 5 800 800 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 0 5 150 150 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 0 5 100 400 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 0 5 3000 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 0 5 1200 255 0 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 0 5 255 0 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 0 5 255 0 0\n");
|
id(arduino_uart).write_str("LED 0 5 255 0 0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1441,19 +1405,7 @@ light:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto effect = id(gauge0_status_green).get_effect_name();
|
auto effect = id(gauge0_status_green).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 0 6 800 800 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 0 6 150 150 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 0 6 100 400 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 0 6 3000 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 0 6 1200 0 255 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 0 6 0 255 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 0 6 0 255 0\n");
|
id(arduino_uart).write_str("LED 0 6 0 255 0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1576,19 +1528,7 @@ light:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto effect = id(gauge1_red_indicator).get_effect_name();
|
auto effect = id(gauge1_red_indicator).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 1 3 800 800 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 1 3 150 150 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 1 3 100 400 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 1 3 3000 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 1 3 1200 255 0 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 1 3 255 0 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 1 3 255 0 0\n");
|
id(arduino_uart).write_str("LED 1 3 255 0 0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1635,19 +1575,7 @@ light:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto effect = id(gauge1_green_indicator).get_effect_name();
|
auto effect = id(gauge1_green_indicator).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 1 4 800 800 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 1 4 150 150 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 1 4 100 400 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 1 4 3000 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 1 4 1200 0 255 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 1 4 0 255 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 1 4 0 255 0\n");
|
id(arduino_uart).write_str("LED 1 4 0 255 0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1694,19 +1622,7 @@ light:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto effect = id(gauge1_status_red).get_effect_name();
|
auto effect = id(gauge1_status_red).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 1 5 800 800 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 1 5 150 150 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 1 5 100 400 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 1 5 3000 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 1 5 1200 255 0 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 1 5 255 0 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 1 5 255 0 0\n");
|
id(arduino_uart).write_str("LED 1 5 255 0 0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1753,19 +1669,7 @@ light:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto effect = id(gauge1_status_green).get_effect_name();
|
auto effect = id(gauge1_status_green).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 1 6 800 800 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 1 6 150 150 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 1 6 100 400 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 1 6 3000 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 1 6 1200 0 255 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 1 6 0 255 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 1 6 0 255 0\n");
|
id(arduino_uart).write_str("LED 1 6 0 255 0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1888,19 +1792,7 @@ light:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto effect = id(gauge2_red_indicator).get_effect_name();
|
auto effect = id(gauge2_red_indicator).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 2 3 800 800 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 2 3 150 150 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 2 3 100 400 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 2 3 3000 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 2 3 1200 255 0 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 2 3 255 0 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 2 3 255 0 0\n");
|
id(arduino_uart).write_str("LED 2 3 255 0 0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1947,19 +1839,7 @@ light:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto effect = id(gauge2_green_indicator).get_effect_name();
|
auto effect = id(gauge2_green_indicator).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 2 4 800 800 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 2 4 150 150 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 2 4 100 400 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 2 4 3000 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 2 4 1200 0 255 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 2 4 0 255 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 2 4 0 255 0\n");
|
id(arduino_uart).write_str("LED 2 4 0 255 0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2006,19 +1886,7 @@ light:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto effect = id(gauge2_status_red).get_effect_name();
|
auto effect = id(gauge2_status_red).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 2 5 800 800 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 2 5 150 150 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 2 5 100 400 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 2 5 3000 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 2 5 1200 255 0 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 2 5 255 0 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 2 5 255 0 0\n");
|
id(arduino_uart).write_str("LED 2 5 255 0 0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2065,19 +1933,7 @@ light:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto effect = id(gauge2_status_green).get_effect_name();
|
auto effect = id(gauge2_status_green).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 2 6 800 800 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 2 6 150 150 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 2 6 100 400 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 2 6 3000 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 2 6 1200 0 255 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 2 6 0 255 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 2 6 0 255 0\n");
|
id(arduino_uart).write_str("LED 2 6 0 255 0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2200,19 +2056,7 @@ light:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto effect = id(gauge3_red_indicator).get_effect_name();
|
auto effect = id(gauge3_red_indicator).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 3 3 800 800 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 3 3 150 150 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 3 3 100 400 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 3 3 3000 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 3 3 1200 255 0 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 3 3 255 0 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 3 3 255 0 0\n");
|
id(arduino_uart).write_str("LED 3 3 255 0 0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2259,19 +2103,7 @@ light:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto effect = id(gauge3_green_indicator).get_effect_name();
|
auto effect = id(gauge3_green_indicator).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 3 4 800 800 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 3 4 150 150 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 3 4 100 400 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 3 4 3000 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 3 4 1200 0 255 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 3 4 0 255 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 3 4 0 255 0\n");
|
id(arduino_uart).write_str("LED 3 4 0 255 0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2318,19 +2150,7 @@ light:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto effect = id(gauge3_status_red).get_effect_name();
|
auto effect = id(gauge3_status_red).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 3 5 800 800 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 3 5 150 150 255 0 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 3 5 100 400 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 3 5 3000 255 0 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 3 5 1200 255 0 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 3 5 255 0 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 3 5 255 0 0\n");
|
id(arduino_uart).write_str("LED 3 5 255 0 0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2377,18 +2197,6 @@ light:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto effect = id(gauge3_status_green).get_effect_name();
|
auto effect = id(gauge3_status_green).get_effect_name();
|
||||||
if (effect == "Blink Slow") {
|
if (effect == "None" || effect.empty()) {
|
||||||
id(arduino_uart).write_str("BLINK 3 6 800 800 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Fast") {
|
|
||||||
id(arduino_uart).write_str("BLINK 3 6 150 150 0 255 0\n");
|
|
||||||
} else if (effect == "Blink Alert") {
|
|
||||||
id(arduino_uart).write_str("BLINK 3 6 100 400 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Slow") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 3 6 3000 0 255 0\n");
|
|
||||||
} else if (effect == "Breathe Fast") {
|
|
||||||
id(arduino_uart).write_str("BREATHE 3 6 1200 0 255 0\n");
|
|
||||||
} else if (effect == "Double Flash") {
|
|
||||||
id(arduino_uart).write_str("DFLASH 3 6 0 255 0\n");
|
|
||||||
} else {
|
|
||||||
id(arduino_uart).write_str("LED 3 6 0 255 0\n");
|
id(arduino_uart).write_str("LED 3 6 0 255 0\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user