![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
A simple LED driver for a single LED. More...
#include <OutputHardware.hpp>
Public Member Functions | |
| SingleLED (OutputGPIO pin) | |
| Create a new single-LED driver. | |
| void | set (bool state) |
| Set the state of the LED. | |
| bool | get () |
| Get the state of the LED. | |
| void | swap () |
| Invert the state of the LED. | |
| void | show () |
| Show the state of the LED. | |
A simple LED driver for a single LED.
Definition at line 289 of file OutputHardware.hpp.
| SingleLED::SingleLED | ( | OutputGPIO | pin | ) |
Create a new single-LED driver.
| pin |
|
inline |
Definition at line 327 of file OutputHardware.hpp.
|
inline |
Get the state of the LED.
Definition at line 312 of file OutputHardware.hpp.
|
inline |
Set the state of the LED.
| state | true to turn on, false to turn off. |
Definition at line 304 of file OutputHardware.hpp.
|
inline |
Invert the state of the LED.
Definition at line 319 of file OutputHardware.hpp.