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

Callback class that drives a LED dot/bar display based on a note or control change value. More...

#include <MIDI_Inputs/LEDs/NoteCCRangeLEDBar.hpp>

Inheritance diagram for NoteCCLEDBarCallback< NumLEDs >:
Collaboration diagram for NoteCCLEDBarCallback< NumLEDs >:

Public Member Functions

 NoteCCLEDBarCallback (const AH::DotBarDisplayLEDs< NumLEDs > &leds)
 
void begin (const INoteCCValue &t) override
 Initialize: called once. More...
 
void update (const INoteCCValue &t, uint8_t) override
 Update the given index: called when a new message is received for this index. More...
 
void dotMode ()
 Set the mode to dot mode. More...
 
void barMode ()
 Set the mode to bar mode. More...
 
void setMode (AH::DotBarMode mode)
 Set the mode to either dot or bar mode. More...
 
virtual void updateAll (const INoteCCValue &noteccval)
 Update all values: called when a bank change causes all values to (possibly) change, or when the entire range is reset to zero. More...
 

Private Attributes

AH::DotBarDisplayLEDs< NumLEDs > leds
 

Detailed Description

template<uint8_t NumLEDs>
class NoteCCLEDBarCallback< NumLEDs >

Callback class that drives a LED dot/bar display based on a note or control change value.

Template Parameters
NumLEDsThe number of LEDs the display has.

Definition at line 15 of file NoteCCRangeLEDBar.hpp.

Constructor & Destructor Documentation

◆ NoteCCLEDBarCallback()

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

Definition at line 17 of file NoteCCRangeLEDBar.hpp.

Member Function Documentation

◆ begin()

void begin ( const INoteCCValue )
inlineoverridevirtual

Initialize: called once.

Reimplemented from SimpleNoteCCValueCallback.

Definition at line 20 of file NoteCCRangeLEDBar.hpp.

◆ update()

void update ( const INoteCCValue noteccval,
uint8_t  index 
)
inlineoverridevirtual

Update the given index: called when a new message is received for this index.

Implements SimpleNoteCCValueCallback.

Definition at line 25 of file NoteCCRangeLEDBar.hpp.

◆ dotMode()

void dotMode ( )
inline

Set the mode to dot mode.

Definition at line 31 of file NoteCCRangeLEDBar.hpp.

◆ barMode()

void barMode ( )
inline

Set the mode to bar mode.

Definition at line 33 of file NoteCCRangeLEDBar.hpp.

◆ setMode()

void setMode ( AH::DotBarMode  mode)
inline

Set the mode to either dot or bar mode.

Parameters
modeThe mode.

Definition at line 35 of file NoteCCRangeLEDBar.hpp.

◆ updateAll()

virtual void updateAll ( const INoteCCValue noteccval)
inlinevirtualinherited

Update all values: called when a bank change causes all values to (possibly) change, or when the entire range is reset to zero.

Definition at line 58 of file NoteCCRange.hpp.

Member Data Documentation

◆ leds

AH::DotBarDisplayLEDs<NumLEDs> leds
private

Definition at line 38 of file NoteCCRangeLEDBar.hpp.


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