#include <MIDI_Inputs/LEDs/NoteCCKPLEDBar.hpp>
Callback class that drives a LED dot/bar display based on a note or control change value.
NumLEDs | The number of LEDs the display has. |
Definition at line 15 of file NoteCCKPLEDBar.hpp.
Public Member Functions | |
NoteCCKPLEDBarDriver (const AH::PinList< NumLEDs > &leds) | |
void | displayBar (uint8_t value) |
void | display (uint16_t value) const |
Display the given number of LEDs on the LED bar. More... | |
void | display (float value) const |
Display the given fraction of the LED bar. More... | |
DotBarMode | getMode () const |
Get the dot/bar mode. More... | |
void | setMode (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... | |
void | begin () const |
Initialize (set LED pins as outputs). More... | |
void | displayRange (uint16_t startOn, uint16_t startOff) const |
Turn on a range of the LEDs. More... | |
void | set (uint16_t index) const |
Turn on the given LED. More... | |
void | clear (uint16_t index) const |
Turn off the given LED. More... | |
void | clear () const |
Turn off all LEDs. More... | |
void | displayDot (uint16_t led) const |
Turn on a single LED, and turn off all others. More... | |
Private Attributes | |
DotBarMode | mode |
const PinList< N > | ledPins |
|
inline |
Definition at line 17 of file NoteCCKPLEDBar.hpp.
|
inline |
Definition at line 20 of file NoteCCKPLEDBar.hpp.
|
inlineinherited |
Display the given number of LEDs on the LED bar.
value | The number of the LED to activate. |
Definition at line 40 of file DotBarDisplayLEDs.hpp.
|
inlineinherited |
Display the given fraction of the LED bar.
value | The fraction of the LED bar to display. |
Definition at line 55 of file DotBarDisplayLEDs.hpp.
|
inlineinherited |
Get the dot/bar mode.
Definition at line 58 of file DotBarDisplayLEDs.hpp.
|
inlineinherited |
Set the mode to either dot or bar mode.
mode | The mode. |
Definition at line 66 of file DotBarDisplayLEDs.hpp.
|
inlineinherited |
Set the mode to dot mode.
Definition at line 69 of file DotBarDisplayLEDs.hpp.
|
inlineinherited |
Set the mode to bar mode.
Definition at line 72 of file DotBarDisplayLEDs.hpp.
|
inlineinherited |
Toggle the dot/bar mode.
Definition at line 75 of file DotBarDisplayLEDs.hpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
privateinherited |
Definition at line 78 of file DotBarDisplayLEDs.hpp.