arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
LEDOutputUnoR4 Class Reference

LED output using the R4 LED matrix library. More...

#include <LEDOutputUnoR4.h>

Public Member Functions

 LEDOutputUnoR4 ()=default
 Default Constructor.
 
 LEDOutputUnoR4 (FFTDisplay &fft)
 Constructor for FFT scenario.
 
 LEDOutputUnoR4 (VolumeMeter &vol)
 Constructor for VolumeMeter scenario.
 
void addColumnBar (int currY)
 Update the last column with the indicated bar.
 
bool begin ()
 Starts the processing with the default configuration.
 
bool begin (LEDOutputUnoR4Config config)
 Setup Led matrix.
 
LEDOutputUnoR4Configconfig ()
 Provides access to the actual config object. E.g. to change the update logic.
 
LEDOutputUnoR4Config defaultConfig ()
 Provides the default config object.
 
void display ()
 Update the led_matrix.
 
FFTDisplayfftDisplay ()
 Provides access to the FFTDisplay object.
 
virtual float getMaxMagnitude ()
 Provodes the max magnitude for the VolumeMeter and FFT scenario.
 
boolledXY (uint8_t x, uint8_t y)
 Determine the led with the help of the x and y pos.
 
void setColumnBar (int x, int currY)
 Update the indicated column with the indicated bar.
 
virtual void update ()
 Updates the display by calling the update callback method: call this method in your loop.
 

Protected Member Functions

void addEmptyColumn ()
 Adds an empty column to the end shifting the content to the left.
 

Protected Attributes

LEDOutputUnoR4Config cfg
 
uint64_t count = 0
 
Vector< boolframe {0}
 
ArduinoLEDMatrix led_matrix
 
int max_column = -1
 
FFTDisplayp_fft = nullptr
 
VolumeMeterp_vol = nullptr
 

Friends

class AudioFFTBase
 

Detailed Description

LED output using the R4 LED matrix library.

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ LEDOutputUnoR4() [1/3]

LEDOutputUnoR4 ( )
default

Default Constructor.

◆ LEDOutputUnoR4() [2/3]

LEDOutputUnoR4 ( FFTDisplay fft)
inline

Constructor for FFT scenario.

Parameters
fft

◆ LEDOutputUnoR4() [3/3]

LEDOutputUnoR4 ( VolumeMeter vol)
inline

Constructor for VolumeMeter scenario.

Parameters
vol

Member Function Documentation

◆ addColumnBar()

void addColumnBar ( int  currY)
inline

Update the last column with the indicated bar.

◆ addEmptyColumn()

void addEmptyColumn ( )
inlineprotected

Adds an empty column to the end shifting the content to the left.

◆ begin() [1/2]

bool begin ( )
inline

Starts the processing with the default configuration.

◆ begin() [2/2]

bool begin ( LEDOutputUnoR4Config  config)
inline

Setup Led matrix.

◆ config()

LEDOutputUnoR4Config & config ( )
inline

Provides access to the actual config object. E.g. to change the update logic.

◆ defaultConfig()

LEDOutputUnoR4Config defaultConfig ( )
inline

Provides the default config object.

◆ display()

void display ( )
inline

Update the led_matrix.

◆ fftDisplay()

FFTDisplay & fftDisplay ( )
inline

Provides access to the FFTDisplay object.

◆ getMaxMagnitude()

virtual float getMaxMagnitude ( )
inlinevirtual

Provodes the max magnitude for the VolumeMeter and FFT scenario.

◆ ledXY()

bool & ledXY ( uint8_t  x,
uint8_t  y 
)
inline

Determine the led with the help of the x and y pos.

◆ setColumnBar()

void setColumnBar ( int  x,
int  currY 
)
inline

Update the indicated column with the indicated bar.

◆ update()

virtual void update ( )
inlinevirtual

Updates the display by calling the update callback method: call this method in your loop.

Friends And Related Symbol Documentation

◆ AudioFFTBase

Member Data Documentation

◆ cfg

LEDOutputUnoR4Config cfg
protected

◆ count

uint64_t count = 0
protected

◆ frame

Vector<bool> frame {0}
protected

◆ led_matrix

ArduinoLEDMatrix led_matrix
protected

◆ max_column

int max_column = -1
protected

◆ p_fft

FFTDisplay* p_fft = nullptr
protected

◆ p_vol

VolumeMeter* p_vol = nullptr
protected

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