Skip to content

Commit 2891a0e

Browse files
Log color shift speed and save dynamic color shift state to EEPROM
1 parent 4a73ae4 commit 2891a0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wordclock_esp8266.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,7 @@ void handleCommand() {
961961
logger.logString("Nightmode starts at: " + String(nightModeStartHour) + ":" + String(nightModeStartMin));
962962
logger.logString("Nightmode ends at: " + String(nightModeEndHour) + ":" + String(nightModeEndMin));
963963
logger.logString("Brightness: " + String(brightness));
964+
logger.logString("ColorShiftSpeed: " + String(dynColorShiftSpeed));
964965
ledmatrix.setBrightness(brightness);
965966
lastNightmodeCheck = millis() - PERIOD_NIGHTMODECHECK;
966967
}
@@ -1052,6 +1053,8 @@ void handleCommand() {
10521053
String str = server.arg(0);
10531054
if(str == "1") dynColorShiftActive = true;
10541055
else dynColorShiftActive = false;
1056+
EEPROM.write(ADR_COLSHIFTACTIVE, dynColorShiftActive);
1057+
EEPROM.commit();
10551058
}
10561059
server.send(204, "text/plain", "No Content"); // this page doesn't send back content --> 204
10571060
}

0 commit comments

Comments
 (0)