To accomplish this, the following changes were made:
- Added an image-scrolling animation
- Implemented a bitmap font engine to generate an image from text
- On startup, an image-scrolling animation is set up with an image
generated from the local IP address
Now any access to the flash, either through update writing or SPIFFS
access, is blocked while the LED stripes are written. This is
accomplished using a FreeRTOS semaphore.
- stop() animation before changing state and wait for completion
- additionally fade to black (in case animation does not stop at black
or when UDP stream ends)
- reset() the animation when changing back to the animation state
Sensitive data are WiFi Logins and authentication data. This is done in
preparation for the OTA update, where the firmware image will be
transferred unencrypted and therefore passwords could be extracted from
a dumped image.
- Try to find an AP 10 times, then set up our own
- When connected to an AP and the connection is lost, restart the WiFi
setup
- Initialize the LEDs before the WiFi, so we are able to (maybe?)
display messages on the LEDs