#include <leds.h>
◆ led_id_t
| Enumerator |
|---|
| FRONT_LEFT | |
| FRONT_RIGHT | |
| BACK_LEFT | |
| BACK_RIGHT | |
◆ Leds()
| Device::Leds::Leds |
( |
Robot & | robot | ) |
|
|
explicit |
◆ ~Leds()
◆ initialize()
| void Device::Leds::initialize |
( |
| ) |
|
Sets up the neccessary GPIO pins.
◆ set_color()
Sets the color of a specific LED.
- Parameters
-
| led_id | The ID of the LED of which to set the color |
| color | The color to set that LED to |
| do_update | Decides if the function automatically updates the LEDs or not (default: true) |
◆ set_color_all()
Sets the color of all LEDs.
- Parameters
-
◆ shutdown()
| void Device::Leds::shutdown |
( |
| ) |
|
Prepares the LEDs for a shut-down state, for example for getting destroyed or entering deep sleep.
◆ turn_all_off()
| void Device::Leds::turn_all_off |
( |
| ) |
|
◆ turn_off()
| void Device::Leds::turn_off |
( |
led_id_t | led_id, |
|
|
bool | do_update = true ) |
Turns off a specific LED.
- Parameters
-
| led_id | The ID of the LED to turn off |
| do_update | Decides if the function automatically updates the LEDs or not (default: true) |
◆ update()
| void Device::Leds::update |
( |
| ) |
const |
Updates the physical LEDs.
The documentation for this class was generated from the following files: