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

Callback for Note or CC range or value input that displays the value to a normal on/off LED. More...

#include <MIDI_Inputs/LEDs/NoteCCRangeLEDs.hpp>

+ Inheritance diagram for NoteCCLED< NumLEDs >:
+ Collaboration diagram for NoteCCLED< NumLEDs >:

Public Member Functions

 NoteCCLED (const PinList< NumLEDs > &ledPins)
 
void setThreshold (uint8_t threshold)
 
uint8_t getThreshold () const
 
void begin (const INoteCCValue &t) override
 Initialize: called once. More...
 
void update (const INoteCCValue &t, uint8_t index) override
 Update the given index: called when a new message is received for this index. 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

PinList< NumLEDs > ledPins
 
uint8_t threshold = 0x00
 

Detailed Description

template<uint8_t NumLEDs>
class NoteCCLED< NumLEDs >

Callback for Note or CC range or value input that displays the value to a normal on/off LED.

Definition at line 15 of file NoteCCRangeLEDs.hpp.

Constructor & Destructor Documentation

◆ NoteCCLED()

NoteCCLED ( const PinList< NumLEDs > &  ledPins)
inline

Definition at line 17 of file NoteCCRangeLEDs.hpp.

Member Function Documentation

◆ setThreshold()

void setThreshold ( uint8_t  threshold)
inline

Definition at line 19 of file NoteCCRangeLEDs.hpp.

◆ getThreshold()

uint8_t getThreshold ( ) const
inline

Definition at line 20 of file NoteCCRangeLEDs.hpp.

◆ begin()

void begin ( const INoteCCValue )
inlineoverridevirtual

Initialize: called once.

Reimplemented from SimpleNoteCCValueCallback.

Definition at line 22 of file NoteCCRangeLEDs.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 28 of file NoteCCRangeLEDs.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

◆ ledPins

PinList<NumLEDs> ledPins
private

Definition at line 35 of file NoteCCRangeLEDs.hpp.

◆ threshold

uint8_t threshold = 0x00
private

Definition at line 36 of file NoteCCRangeLEDs.hpp.


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