13 #ifndef _INDICATOR_INCLUDE_GUARD 14 #define _INDICATOR_INCLUDE_GUARD 20 #include "../config/config.h" 21 #include "../logging/logging.h" 30 Indicator(std::shared_ptr<Logging>& logging);
Definition: indicator.h:23
bool UpdateStatus(CONFIG_SET::DEVICE_STATUS status)
Updates the color of LED by using mapping from status to color of LED.
Definition: indicator.cpp:32
CRGB leds_[CONFIG_SET::NUMBER_OF_LEDS]
Definition: indicator.h:50
void InitializeLED()
Initializes RGB LED.
Definition: indicator.cpp:25
~Indicator()
Destroy the Indicator object.
Definition: indicator.cpp:19
Indicator(std::shared_ptr< Logging > &logging)
Fetches the LED pin from config, setups pin mode, setup WS2812 RGBLED, initializes logger...
Definition: indicator.cpp:21
std::shared_ptr< Logging > logger_
Definition: indicator.h:49
DEVICE_STATUS
Definition: config.h:147
const int NUMBER_OF_LEDS
Definition: config.h:37