39 for (
size_t i = 0; i < N; ++i) {
48 for (
size_t i = 0; i < N; ++i) {
64 void Off(
size_t idx) {
67 if (activeIllumination) {
74 void Set(
size_t idx,
bool val) {
Definition IndicatorLights.h:31
size_t m_numIlluminated
Definition IndicatorLights.h:113
const size_t m_numLEDs
Definition IndicatorLights.h:111
IndicatorLights(LED(&&lights)[N], size_t maxIlluminated=N)
Definition IndicatorLights.h:34
bool GetIlluminated(size_t idx) const
Definition IndicatorLights.h:100
size_t GetNumLights() const
Definition IndicatorLights.h:98
LED::LEDPattern GetPattern(size_t idx) const
Definition IndicatorLights.h:84
void SetPattern(size_t idx, LED::LEDPattern newPattern)
Definition IndicatorLights.h:92
void On(size_t idx)
Definition IndicatorLights.h:54
LED m_lights[N]
Definition IndicatorLights.h:109
void Initialize()
Definition IndicatorLights.h:37
void Off(size_t idx)
Definition IndicatorLights.h:64
void Update()
Definition IndicatorLights.h:46
bool m_initialized
Definition IndicatorLights.h:110
void Set(size_t idx, bool val)
Definition IndicatorLights.h:74
const size_t m_maxIlluminated
Definition IndicatorLights.h:112
void Initialize()
Definition LED.cpp:60
void SetPattern(LEDPattern newPattern)
Definition LED.cpp:105
LEDPattern
Definition LED.h:44
void On()
Definition LED.cpp:91
bool GetIlluminated() const
Definition LED.cpp:101
void Off()
Definition LED.cpp:96
void Update()
Definition LED.cpp:74
LEDPattern GetPattern() const
Definition LED.cpp:109