#include <MIDI_Inputs/LEDs/MCU/VULEDs.hpp>
template<
uint16_t NumLEDs>
class MCU::VULEDsDriver< NumLEDs >
Small helper to display the VU meters on an LED bar display.
Definition at line 12 of file VULEDs.hpp.
|
| VULEDsDriver (const PinList< NumLEDs > &leds) |
| Constructor.
|
|
void | displayVU (uint16_t value) |
|
void | display (uint16_t value) const |
| Display the given number of LEDs on the LED bar.
|
|
void | display (float value) const |
| Display the given fraction of the LED bar.
|
|
DotBarMode | getMode () const |
| Get the dot/bar mode.
|
|
void | setMode (DotBarMode mode) |
| Set the mode to either dot or bar mode.
|
|
void | dotMode () |
| Set the mode to dot mode.
|
|
void | barMode () |
| Set the mode to bar mode.
|
|
void | toggleMode () |
| Toggle the dot/bar mode.
|
|
void | begin () const |
| Initialize (set LED pins as outputs).
|
|
void | displayRange (uint16_t startOn, uint16_t startOff) const |
| Turn on a range of the LEDs.
|
|
void | set (uint16_t index) const |
| Turn on the given LED.
|
|
void | clear (uint16_t index) const |
| Turn off the given LED.
|
|
void | clear () const |
| Turn off all LEDs.
|
|
void | displayDot (uint16_t led) const |
| Turn on a single LED, and turn off all others.
|
|
◆ VULEDsDriver()
◆ displayVU()
◆ display() [1/2]
Display the given number of LEDs on the LED bar.
- Parameters
-
value | The number of the LED to activate. |
Definition at line 37 of file DotBarDisplayLEDs.hpp.
◆ display() [2/2]
void display |
( |
float | value | ) |
const |
|
inlineinherited |
Display the given fraction of the LED bar.
- Parameters
-
value | The fraction of the LED bar to display. |
Definition at line 52 of file DotBarDisplayLEDs.hpp.
◆ getMode()
DotBarMode getMode |
( |
| ) |
const |
|
inlineinherited |
◆ setMode()
◆ dotMode()
◆ barMode()
◆ toggleMode()
◆ begin()
Initialize (set LED pins as outputs).
Definition at line 31 of file LEDs.hpp.
◆ displayRange()
Turn on a range of the LEDs.
- Parameters
-
startOn | The first LED of the range to turn on (the LEDs before this one are turned off). |
startOff | The first LED after the range to turn off. |
Definition at line 45 of file LEDs.hpp.
◆ set()
Turn on the given LED.
Definition at line 55 of file LEDs.hpp.
◆ clear() [1/2]
Turn off the given LED.
Definition at line 61 of file LEDs.hpp.
◆ clear() [2/2]
Turn off all LEDs.
Definition at line 77 of file LEDs.hpp.
◆ displayDot()
Turn on a single LED, and turn off all others.
- Parameters
-
Definition at line 72 of file LEDs.hpp.
◆ FLOOR_CORRECTION
template<uint16_t NumLEDs>
- See also
- doc/VU-LED-mapping.ods
Definition at line 27 of file VULEDs.hpp.
◆ mode
◆ ledPins
The documentation for this class was generated from the following file: