The main LEDs API takes care of the whole set of LEDs.
More...
#include <leds.h>
The main LEDs API takes care of the whole set of LEDs.
◆ LedOn() [1/2]
bool modules::leds::LEDs::LedOn |
( |
uint8_t |
index | ) |
const |
|
inline |
- Returns
- true if a LED is shining
- Parameters
-
index | - raw index of the LED in the internal leds array |
◆ LedOn() [2/2]
bool modules::leds::LEDs::LedOn |
( |
uint8_t |
slot, |
|
|
Color |
color |
|
) |
| const |
|
inline |
- Returns
- true if a LED is shining
- Parameters
-
slot | index of filament slot (index of the LED pair) |
color | green or red LED |
◆ LedPairsCount()
constexpr uint8_t modules::leds::LEDs::LedPairsCount |
( |
| ) |
const |
|
inlineconstexpr |
- Returns
- the number of LED pairs
◆ Mode() [1/2]
leds::Mode modules::leds::LEDs::Mode |
( |
uint8_t |
index | ) |
|
|
inline |
- Returns
- the currently active mode of a LED
- Parameters
-
index | - raw index of the LED in the internal leds array |
◆ Mode() [2/2]
- Returns
- the currently active mode of a LED in a pair
- Parameters
-
slot | index of filament slot (index of the LED pair) |
color | green or red LED |
◆ SetMode() [1/2]
void modules::leds::LEDs::SetMode |
( |
uint8_t |
index, |
|
|
Mode |
mode |
|
) |
| |
|
inline |
Sets the mode of a LED in a pair
- Parameters
-
index | - raw index of the LED in the internal leds array |
mode | to set |
◆ SetMode() [2/2]
void modules::leds::LEDs::SetMode |
( |
uint8_t |
slot, |
|
|
Color |
color, |
|
|
Mode |
mode |
|
) |
| |
|
inline |
Sets the mode of a LED in a pair
- Parameters
-
slot | index of filament slot (index of the LED pair) |
color | green or red LED |
mode | to set |
The documentation for this class was generated from the following files: