|
stm32f103
|
Implements LED-related features. More...
#include <led.h>
Classes | |
| struct | Config |
| Configuration for LED. More... | |
Public Member Functions | |
| Led (const Config &config) | |
| Constructor for LED. More... | |
| void | SetEnable (const bool flag) |
| void | Switch () |
| Switches the state of the LED. More... | |
Protected Member Functions | |
| Pin * | GetPin () |
| GPIO * | GetGpio () |
Implements LED-related features.
|
explicit |
Constructor for LED.
| config | LED configuration |
|
inlineprotected |
| void Led::SetEnable | ( | const bool | flag | ) |
Sets the state of the LED.
| flag | True if LED should be on. |

| void Led::Switch | ( | ) |
Switches the state of the LED.