arduino-audio-tools
Public Attributes | List of all members
LEDOutputConfig Struct Reference

#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.
 

Detailed Description

LED Matrix Configuration. Provide the number of leds in x and y direction and the data pin.

Author
Phil Schatzmann

Member Data Documentation

◆ color_callback

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)

◆ update_callback

void(* update_callback) (LEDOutputConfig *cfg, LEDOutput *matrix) = nullptr

Custom callback logic to update the LEDs - by default we use fftLEDOutput()


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