Initial version with state save

This commit is contained in:
Tobias Blum
2017-12-18 00:32:01 +01:00
parent b04896700e
commit 9dfcf2a391
3 changed files with 94 additions and 11 deletions
+3 -1
View File
@@ -17,7 +17,9 @@ void getArgs() {
ws2812fx_speed = 196;
}
ws2812fx_mode = constrain(server.arg("m").toInt(), 0, strip.getModeCount()-1);
if (server.arg("m") != "") {
ws2812fx_mode = constrain(server.arg("m").toInt(), 0, strip.getModeCount()-1);
}
main_color.red = constrain(main_color.red, 0, 255);
main_color.green = constrain(main_color.green, 0, 255);