ActivationController activationController
Instance of the activation controller.
Controls breathing activation ON/OFF state.
bool isRunning() const
Return if breathing is activated or not.
void onStopButton()
Callback to call each time the stop button is pushed.
void refreshState()
Refresh the current state.
void changeState(uint16_t state)
Change the current state.
void onStartButton()
Callback to call each time the start button is pushed.
State m_state
Activation status.
uint32_t m_timeOfLastStopPushed
Last time stop button was pushed.
@ RUNNING_READY_TO_STOP
Breathing is ON, waiting for a second push to stop.
@ RUNNING
Breathing is ON.
@ STOPPED
Breathing is OFF.