#include <indicator.h>
◆ Indicator()
Indicator::Indicator |
( |
std::shared_ptr< Logging > & |
logging | ) |
|
Fetches the LED pin from config, setups pin mode, setup WS2812 RGBLED, initializes logger.
◆ ~Indicator()
Indicator::~Indicator |
( |
| ) |
|
◆ InitializeLED()
void Indicator::InitializeLED |
( |
| ) |
|
|
private |
◆ UpdateStatus()
Updates the color of LED by using mapping from status to color of LED.
- Parameters
-
status | Device Status to be used for updation |
- Returns
- true: if the updation was successful
-
false: otherwise
◆ leds_
◆ logger_
std::shared_ptr<Logging> Indicator::logger_ |
|
private |
The documentation for this class was generated from the following files: