arduino-audio-tools
Loading...
Searching...
No Matches
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)

◆ is_matrix_vertical

bool is_matrix_vertical = true

◆ is_serpentine_layout

bool is_serpentine_layout = true

◆ max_magnitude

int max_magnitude = 700

Influences the senitivity.

◆ update_callback

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

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

◆ update_frequency

int update_frequency = 1

Update the leds only ever nth call.

◆ x

int x = 0

Number of leds in x direction.

◆ y

int y = 1

Number of leds in y direction.


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