#include <AH/Hardware/LEDs/DotBarDisplayLEDs.hpp>
template<uint16_t N>
class DotBarDisplayLEDs< N >
A class for LED bars.
- Template Parameters
-
N | The number of LEDs in the bar. |
Definition at line 26 of file DotBarDisplayLEDs.hpp.
◆ DotBarDisplayLEDs()
◆ display() [1/2]
void display |
( |
uint16_t |
value | ) |
const |
|
inline |
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 |
|
inline |
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()
◆ setMode()
◆ dotMode()
◆ barMode()
◆ toggleMode()
◆ begin()
Initialize (set LED pins as outputs).
Definition at line 31 of file LEDs.hpp.
◆ displayRange()
void displayRange |
( |
uint16_t |
startOn, |
|
|
uint16_t |
startOff |
|
) |
| const |
|
inlineinherited |
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()
void set |
( |
uint16_t |
index | ) |
const |
|
inlineinherited |
Turn on the given LED.
Definition at line 55 of file LEDs.hpp.
◆ clear() [1/2]
void clear |
( |
uint16_t |
index | ) |
const |
|
inlineinherited |
Turn off the given LED.
Definition at line 61 of file LEDs.hpp.
◆ clear() [2/2]
◆ displayDot()
void displayDot |
( |
uint16_t |
led | ) |
const |
|
inlineinherited |
Turn on a single LED, and turn off all others.
- Parameters
-
Definition at line 72 of file LEDs.hpp.
◆ mode
◆ ledPins
The documentation for this class was generated from the following file: