Set humidity and temperature with buttons

This commit is contained in:
2026-05-18 22:42:47 +02:00
parent 1f2a0b253e
commit e4308c5e50
3 changed files with 189 additions and 18 deletions

16
Menu.h
View File

@@ -8,11 +8,22 @@ enum MenuType {
MENU_SETUP,
};
enum MenuState {
STATE_BROWSING,
STATE_EDITING
};
class Menu {
private:
MenuType type;
MenuState state;
int index;
// Settings
int targetTemperature;
int targetHumidity;
static const int MAIN_SIZE = 3;
static const int SETUP_SIZE = 3;
@@ -32,6 +43,11 @@ public:
const char* getNext();
MenuType getType();
bool isEditing();
int getTargetTemperature();
int getTargetHumidity();
};
#endif