Complete rewrite of Application

This commit is contained in:
2026-05-04 22:30:50 +02:00
parent 507a874304
commit 1f2a0b253e
9 changed files with 360 additions and 180 deletions

37
Menu.h Normal file
View File

@@ -0,0 +1,37 @@
#ifndef MENU_H
#define MENU_H
#include <Arduino.h>
enum MenuType {
MENU_MAIN,
MENU_SETUP,
};
class Menu {
private:
MenuType type;
int index;
static const int MAIN_SIZE = 3;
static const int SETUP_SIZE = 3;
const char* getItem(MenuType type, int index);
int getSize(MenuType type);
public:
Menu();
void next();
void prev();
void enter();
void back();
const char* getCurrent();
const char* getNext();
MenuType getType();
};
#endif