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

Callback for Note or CC range or value input that displays the value to a PWM LED. More...

#include <MIDI_Inputs/LEDs/NoteCCRangeLEDs.hpp>

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

Public Member Functions

 NoteCCLEDPWM (const PinList< NumLEDs > &ledPins)
 
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
 

Detailed Description

template<uint8_t NumLEDs>
class NoteCCLEDPWM< NumLEDs >

Callback for Note or CC range or value input that displays the value to a PWM LED.

Definition at line 42 of file NoteCCRangeLEDs.hpp.

Constructor & Destructor Documentation

◆ NoteCCLEDPWM()

NoteCCLEDPWM ( const PinList< NumLEDs > &  ledPins)
inline

Definition at line 44 of file NoteCCRangeLEDs.hpp.

Member Function Documentation

◆ begin()

void begin ( const INoteCCValue )
inlineoverridevirtual

Initialize: called once.

Reimplemented from SimpleNoteCCValueCallback.

Definition at line 46 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 52 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 58 of file NoteCCRangeLEDs.hpp.


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