Control Surface  1.1.1
MIDI Control Surface library for Arduino
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
VULEDsCallback< NumLEDs > Class Template Reference

#include <MIDI_Inputs/LEDs/MCU/VULEDs.hpp>

Collaboration diagram for VULEDsCallback< NumLEDs >:

Public Member Functions

 VULEDsCallback (const AH::DotBarDisplayLEDs< NumLEDs > &leds)
 
template<class T >
void begin (T &)
 
template<class T >
void update (T &t)
 
AH::DotBarMode getMode () const
 Get the dot/bar mode. More...
 
void setMode (AH::DotBarMode mode)
 Set the mode to either dot or bar mode. More...
 
void dotMode ()
 Set the mode to dot mode. More...
 
void barMode ()
 Set the mode to bar mode. More...
 
void toggleMode ()
 Toggle the dot/bar mode. More...
 

Private Attributes

AH::DotBarDisplayLEDs< NumLEDs > leds
 

Static Private Attributes

constexpr static uint8_t FLOOR_CORRECTION = 5
 

Detailed Description

template<uint8_t NumLEDs>
class MCU::VULEDsCallback< NumLEDs >

Definition at line 11 of file VULEDs.hpp.

Constructor & Destructor Documentation

◆ VULEDsCallback()

VULEDsCallback ( const AH::DotBarDisplayLEDs< NumLEDs > &  leds)
inline

Definition at line 13 of file VULEDs.hpp.

Member Function Documentation

◆ begin()

void begin ( T &  )
inline

Definition at line 16 of file VULEDs.hpp.

◆ update()

void update ( T &  t)
inline

Definition at line 21 of file VULEDs.hpp.

◆ getMode()

AH::DotBarMode getMode ( ) const
inline

Get the dot/bar mode.

Definition at line 28 of file VULEDs.hpp.

◆ setMode()

void setMode ( AH::DotBarMode  mode)
inline

Set the mode to either dot or bar mode.

Parameters
modeThe mode.

Definition at line 30 of file VULEDs.hpp.

◆ dotMode()

void dotMode ( )
inline

Set the mode to dot mode.

Definition at line 32 of file VULEDs.hpp.

◆ barMode()

void barMode ( )
inline

Set the mode to bar mode.

Definition at line 34 of file VULEDs.hpp.

◆ toggleMode()

void toggleMode ( )
inline

Toggle the dot/bar mode.

Definition at line 36 of file VULEDs.hpp.

Member Data Documentation

◆ leds

AH::DotBarDisplayLEDs<NumLEDs> leds
private

Definition at line 39 of file VULEDs.hpp.

◆ FLOOR_CORRECTION

constexpr static uint8_t FLOOR_CORRECTION = 5
staticconstexprprivate
See also
doc/VU-LED-mapping.ods

Definition at line 42 of file VULEDs.hpp.


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