11 #include "../includes/activation.h"
14 #include "../includes/buzzer.h"
ActivationController activationController
Instance of the activation controller.
const uint32_t SECOND_STOP_MAX_DELAY_MS
Maximum delay in seconds between two pushes on the stop button to actually stop the machine.
Controls breathing activation ON/OFF state.
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.