Lixie-Labs / Emotiscope

Let your eyes enjoy the music too ✨ Extremely low-latency audio processing lets LEDs perfectly synchronize to your music's notation and tempo.
https://emotiscope.rocks/
GNU General Public License v3.0
31 stars 6 forks source link

implement reserved dots at the end of the array with an enum to name them #40

Closed github-actions[bot] closed 7 months ago

github-actions[bot] commented 7 months ago

Some can be specfically reserved for UI like tuning needles and the screensaver

https://github.com/Lixie-Labs/Emotiscope/blob/d86b5e6b51d8d961487226109ad7624e71e13e05/src/leds.h#L31


#define DATA_PIN_2 12
#define LED_TYPE NEOPIXEL
#define COLOR_ORDER GRB

#define REFERENCE_FPS 100

CRGBF WHITE = {1.0, 1.0, 1.0};
CRGBF BLACK = {0.0, 0.0, 0.0};

CRGBF leds[NUM_LEDS]; // 32-bit image buffer

CRGBF leds_temp[NUM_LEDS]; // for temporary copies of the image buffer (scaling)

CRGBF leds_last[NUM_LEDS];

CRGBF leds_smooth[NUM_LEDS];

#define MAX_DOTS 192 
#define NUM_RESERVED 64 // TODO: implement reserved dots at the end of the array with an enum to name them
                        // Some can be specfically reserved for UI like tuning needles and the screensaver
fx_dot fx_dots[MAX_DOTS];

float rendered_debug_value = 0.0;
connornishijima commented 7 months ago

hey connor work on this

connornishijima commented 7 months ago

k

github-actions[bot] commented 7 months ago

Closed in 3c618f6b93e1d9119fce2a3136c2200f2f6f77af