ledFullRed -> ledFullColor
This commit is contained in:
parent
a4c8fc3606
commit
159ab28b76
@ -187,8 +187,7 @@ void ledError()
|
||||
FastLED.delay(1000 / speed);
|
||||
}
|
||||
|
||||
// TODO : ne doit pas rester à terme, ça ne sert à rien de garder une fonction comme ça
|
||||
void ledFullRed()
|
||||
void ledFullColor()
|
||||
{
|
||||
fill_solid(leds, LED_NUM, color);
|
||||
FastLED.show();
|
||||
@ -200,29 +199,16 @@ void loop() {
|
||||
testConnectMQTT();
|
||||
client.loop();
|
||||
|
||||
// TODO : à retirer je pense
|
||||
//EVERY_N_SECONDS(180) {
|
||||
// Serial.print("MQTT Subscribe refresh");
|
||||
// client.subscribe(MQTT_LED_EFFECT_COMMAND);
|
||||
// client.subscribe(MQTT_LED_BRIGHTNESS_COMMAND);
|
||||
// client.subscribe(MQTT_LED_COLOR_COMMAND);
|
||||
// client.subscribe(MQTT_LED_SPEED_COMMAND);
|
||||
// Serial.println(" done");
|
||||
//}
|
||||
|
||||
// LED
|
||||
if (!ledState) {
|
||||
ledBlackAll();
|
||||
FastLED.delay(1000);
|
||||
} else {
|
||||
if (ledEffect == LED_EFFECT_CYLON) {
|
||||
ledCylon();
|
||||
} else if (ledEffect == LED_EFFECT_FULLRED) {
|
||||
ledFullRed();
|
||||
ledFullColor();
|
||||
} else {
|
||||
ledError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO : regrouper input et select en un seul group, l'input enverrait directement Off et les effets ne seraient que effets
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user