In particular, the following should be moved elsewhere:
[] power variable
[] brightness variable
[] setShowClock() function
[] setClockBackgroundFade() function
[] setUtcOffsetIndex() function
Consider also making some function templates to further consolidate the functions for get/set of the variables. This should reduce bugs when needing to add new functionality (such as websocket transmissions on value changes), for example.
_Originally posted by @tobi01001 in https://github.com/jasoncoon/esp8266-fastled-webserver/pull/216#discussion_r757542649_
In particular, the following should be moved elsewhere:
power
variablebrightness
variablesetShowClock()
functionsetClockBackgroundFade()
functionsetUtcOffsetIndex()
functionConsider also making some function templates to further consolidate the functions for get/set of the variables. This should reduce bugs when needing to add new functionality (such as websocket transmissions on value changes), for example.