NanoLux (Device) 3.0
Codebase for the open-source AudioLux device.
|
Holds persistent data for currently-running patterns. More...
#include <patterns.h>
Holds persistent data for currently-running patterns.
This structure contains both persistent variables that can be reused on a per-subpattern basis.
It also contains the LED buffer for that subpattern. The main advantage of defining it here is that each subpattern can have an independent pattern buffer separate from the main ones in main.ino.
When a subpattern is modified in a way that requires a reset (changing the subpattern name, changing LED length), the existing pattern history should be replaced with the default structure.