main: add sensors display with A2 switch

This commit is contained in:
Vasily Davydov
2022-10-28 00:17:57 +03:00
parent 759bc5034f
commit c7ed343fa2
4 changed files with 72 additions and 16 deletions

View File

@@ -44,7 +44,7 @@ enum _buttons
/** Optional button to toggle the
* activation of the current setting.
* Not compulsory to be used. */
BUTTON_CONTROL_TOG_ACTIVE
BUTTON_CONTROL_TOG_ACTIVE,
};
enum _bars
@@ -123,6 +123,8 @@ private:
PressureWrapper *_pressure;
bool pressure_status;
bool task_is_pending;
bool sensor_values_ready;
bool sensor_mode;
uint8_t pressure_achieved;
Timer *state_timer;
/* CO2 sensor object */
@@ -177,6 +179,12 @@ private:
*/
void stateGetPressure (const Event &event);
/** Show sensors
*
* @param event event of the state
*/
void stateShowSensors (const Event &event);
/** Handle button presses
*
* @param button current button