-
Notifications
You must be signed in to change notification settings - Fork 112
/
OLEDMenuImplementation.h
28 lines (28 loc) · 1.38 KB
/
OLEDMenuImplementation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// define menu items and handlers here
#ifndef OLED_MENU_IMPLEMENTATION_H_
#define OLED_MENU_IMPLEMENTATION_H_
#include "OLEDMenuManager.h"
enum MenuItemTag: uint16_t {
// unique identifiers for sub-items
MT_NULL, // null tag, used by root menu items, since they can be differentiated by handlers
MT_1280x960,
MT1280x1024,
MT1280x720,
MT1920x1080,
MT_480s576,
MT_DOWNSCALE,
MT_BYPASS,
MT_RESET_GBS,
MT_RESTORE_FACTORY,
MT_RESET_WIFI,
};
// declarations of resolutionMenuHandler, presetSelectionMenuHandler, presetsCreationMenuHandler, resetMenuHandler, currentSettingHandler, wifiMenuHandler
bool resolutionMenuHandler(OLEDMenuManager *manager, OLEDMenuItem *item, OLEDMenuNav nav, bool isFirstTime);
bool presetSelectionMenuHandler(OLEDMenuManager *manager, OLEDMenuItem *item, OLEDMenuNav nav, bool isFirstTime);
bool presetsCreationMenuHandler(OLEDMenuManager *manager, OLEDMenuItem *item, OLEDMenuNav nav, bool isFirstTime);
bool resetMenuHandler(OLEDMenuManager *manager, OLEDMenuItem *item, OLEDMenuNav nav, bool isFirstTime);
bool currentSettingHandler(OLEDMenuManager *manager, OLEDMenuItem *item, OLEDMenuNav nav, bool isFirstTime);
bool wifiMenuHandler(OLEDMenuManager *manager, OLEDMenuItem *item, OLEDMenuNav nav, bool isFirstTime);
bool OSDHandler(OLEDMenuManager *manager, OLEDMenuItem *item, OLEDMenuNav nav, bool isFirstTime);
void initOLEDMenu();
#endif