NanoLux (Device) 3.0
Codebase for the open-source AudioLux device.
Loading...
Searching...
No Matches
Strip_Buffer Struct Reference

Holds persistent data for currently-running patterns. More...

#include <patterns.h>

Public Attributes

CRGB leds [MAX_LEDS] = {0}
 
int frame = 0
 
double amplitude = 0
 
int tempHue = 0
 
int vol_pos = 0
 
int pix_pos = 0
 
uint8_t genre_smoothing [10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
 
int genre_pose = 0
 
double max1 [20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
 
double max2 [20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
 
double max3 [20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
 
double max4 [20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
 
double max5 [20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
 
int maxIter = 0
 
double velocity = 0
 
double acceleration = 0
 
double smoothing_value [10] = {0,0,0,0,0,0,0,0,0,0}
 
int location = 70
 
double velocities [5] = {0,0,0,0,0}
 
double accelerations [5] = {0,0,0,0,0}
 
int locations [5] = {70,60,50,40,30}
 
double vRealSums [5] = {0,0,0,0,0}
 

Detailed Description

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.


The documentation for this struct was generated from the following file: