arduino-audio-tools
|
#include <LEDOutput.h>
Public Attributes | |
CHSV(* | color_callback )(int x, int y, int magnitude) = getDefaultColor |
bool | is_matrix_vertical = true |
bool | is_serpentine_layout = true |
int | max_magnitude = 700 |
Influences the senitivity. | |
void(* | update_callback )(LEDOutputConfig *cfg, LEDOutput *matrix) = nullptr |
int | update_frequency = 1 |
Update the leds only ever nth call. | |
int | x = 0 |
Number of leds in x direction. | |
int | y = 1 |
Number of leds in y direction. | |
LED Matrix Configuration. Provide the number of leds in x and y direction and the data pin.
CHSV(* color_callback) (int x, int y, int magnitude) = getDefaultColor |
optinal custom logic to provide CHSV color: Prividing a 'rainbow' color with hue 0-255, saturating 0-255, and brightness (value) 0-255 (v2)
void(* update_callback) (LEDOutputConfig *cfg, LEDOutput *matrix) = nullptr |
Custom callback logic to update the LEDs - by default we use fftLEDOutput()