24#ifndef __LED_UPDATE_STATE_H
25#define __LED_UPDATE_STATE_H
28#include <avr/interrupt.h>
33 volatile bool ledsNeedUpdate;
40 ledsNeedUpdate =
false;
63 ledsNeedUpdate = requireUpdate;
73 return ledsNeedUpdate;
void setUpdateFlag(bool requireUpdate)
Sets the LED update flag in an atomic operation.
static LedUpdateState * getInstance()
Gets the singleton instance of the LedUpdateState class.
bool getUpdateFlag() const
Gets the current state of the LED update flag.