|
arduino-audio-tools
|
LED output using the FastLED library. More...
#include <LEDOutput.h>
Public Member Functions | |
| LEDOutput ()=default | |
| Default Constructor. | |
| LEDOutput (FFTDisplay &fft) | |
| Constructor for FFT scenario. | |
| LEDOutput (VolumeMeter &vol) | |
| Constructor for VolumeMeter scenario. | |
| void | addColumnBar (int currY) |
| Update the last column with the indicated bar. | |
| bool | begin (LEDOutputConfig config) |
| Setup Led matrix. | |
| LEDOutputConfig & | config () |
| Provides access to the actual config object. E.g. to change the update logic. | |
| LEDOutputConfig | defaultConfig () |
| Provides the default config object. | |
| void | display () |
| Update the led_matrix (calling FastLED.show();. | |
| FFTDisplay & | fftDisplay () |
| Provides acces to the FFTDisplay object. | |
| virtual float | getMaxMagnitude () |
| Provodes the max magnitude for both the. | |
| CRGB & | led (uint8_t index) |
| Determine the led with the help of the index pos. | |
| int | ledCount () |
| Provides the number of LEDs: call begin() first! | |
| CRGB * | ledData () |
| Provides the address fo the CRGB array: call begin() first! | |
| CRGB & | ledXY (uint8_t x, uint8_t y) |
| Determine the led with the help of the x and y pos. | |
| void | setColumnBar (int currY) |
| Update the last column with the indicated bar. | |
| void | setColumnBar (int x, int currY) |
| Update the indicated column with the indicated bar. | |
| virtual void | update () |
| Updates the display: call this method in your loop. | |
Protected Member Functions | |
| void | addEmptyColumn () |
| Adds an empty column to the end shifting the content to the left. | |
| uint16_t | xy (uint8_t x, uint8_t y) |
Protected Attributes | |
| LEDOutputConfig | cfg |
| uint64_t | count = 0 |
| Vector< CRGB > | leds {0} |
| int | max_column = -1 |
| CRGB | not_valid |
| FFTDisplay * | p_fft = nullptr |
| VolumeMeter * | p_vol = nullptr |
Friends | |
| class | AudioFFTBase |
LED output using the FastLED library.
|
default |
Default Constructor.
|
inline |
Constructor for FFT scenario.
| fft |
|
inline |
Constructor for VolumeMeter scenario.
| vol |
|
inlineprotected |
Adds an empty column to the end shifting the content to the left.
|
inline |
Setup Led matrix.
|
inline |
Provides access to the actual config object. E.g. to change the update logic.
|
inline |
Provides the default config object.
|
inline |
Update the led_matrix (calling FastLED.show();.
|
inline |
Provides acces to the FFTDisplay object.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |