This repository has been archived by the owner on Nov 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
: Set currentMode on start, fix led flicker
* LED update is based on the currentMode variable, not the Mode variable. On initial startup getConfig sets Mode, but currentMode is left unset. As this isn't a valid mode the refresh loop sets both values to the default Colour, requiring the config be rerear. FIX: Set currentMode when initializing the LEDs. * More complex modes make the LEDs flicker; instead of running the render code every update add a toggle to alternate between render or show giving other code a chance to run between slow renders and strip refresh. Most likely being caused by wifi processing/buffering and this fixes it on my devices.
- Loading branch information
Showing
1 changed file
with
73 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters