This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
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 <NoteCCRangeLEDBar.hpp>

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

Public Member Functions

 NoteCCLEDBarCallback (const DotBarDisplayLEDs< NumLEDs > &leds)
 
void begin (const INoteCCValue &t) override
 
void update (const INoteCCValue &t, uint8_t) override
 
void dotMode ()
 Set the mode to dot mode. More...
 
void barMode ()
 Set the mode to bar mode. More...
 
void setMode (DotBarMode mode)
 Set the mode to either dot or bar mode. More...
 
virtual void updateAll (const INoteCCValue &noteccval)
 

Private Attributes

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()

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

Definition at line 17 of file NoteCCRangeLEDBar.hpp.

Member Function Documentation

◆ begin()

template<uint8_t NumLEDs>
void NoteCCLEDBarCallback< NumLEDs >::begin ( const INoteCCValue t)
inlineoverridevirtual

Reimplemented from SimpleNoteCCValueCallback.

Definition at line 19 of file NoteCCRangeLEDBar.hpp.

◆ update()

template<uint8_t NumLEDs>
void NoteCCLEDBarCallback< NumLEDs >::update ( const INoteCCValue t,
uint8_t   
)
inlineoverridevirtual

Implements SimpleNoteCCValueCallback.

Definition at line 24 of file NoteCCRangeLEDBar.hpp.

◆ dotMode()

template<uint8_t NumLEDs>
void NoteCCLEDBarCallback< NumLEDs >::dotMode ( )
inline

Set the mode to dot mode.

Definition at line 30 of file NoteCCRangeLEDBar.hpp.

◆ barMode()

template<uint8_t NumLEDs>
void NoteCCLEDBarCallback< NumLEDs >::barMode ( )
inline

Set the mode to bar mode.

Definition at line 32 of file NoteCCRangeLEDBar.hpp.

◆ setMode()

template<uint8_t NumLEDs>
void NoteCCLEDBarCallback< NumLEDs >::setMode ( DotBarMode  mode)
inline

Set the mode to either dot or bar mode.

Parameters
modeThe mode.

Definition at line 34 of file NoteCCRangeLEDBar.hpp.

◆ updateAll()

virtual void SimpleNoteCCValueCallback::updateAll ( const INoteCCValue noteccval)
inlinevirtualinherited

Definition at line 36 of file NoteCCRange.hpp.

Member Data Documentation

◆ leds

template<uint8_t NumLEDs>
DotBarDisplayLEDs<NumLEDs> NoteCCLEDBarCallback< NumLEDs >::leds
private

Definition at line 37 of file NoteCCRangeLEDBar.hpp.


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