Fixes; additional input filtering
This commit is contained in:
parent
209959e2de
commit
7740c09375
11 changed files with 802 additions and 513 deletions
|
|
@ -8,7 +8,7 @@
|
|||
#define MENU_HEADER_OFFSET 12
|
||||
#define MENU_NUM_ROWS 6
|
||||
#define ADJUST_NUM_ROWS 3
|
||||
#define ADJUST_ROW_HEIGHT 21
|
||||
#define ADJUST_ROW_HEIGHT 22
|
||||
|
||||
extern const unsigned long debounceDelay; // the debounce time; increase if the output flickers
|
||||
extern const unsigned long buttonRepeatInterval;
|
||||
|
|
@ -33,12 +33,12 @@ class MenuScreen {
|
|||
public:
|
||||
MenuScreen() {};
|
||||
virtual const char *title() { return ""; };
|
||||
virtual bool update(state_t &state, InputState &input, bool redraw) = 0;
|
||||
virtual void update(state_t &state, InputState &input, bool redraw) = 0;
|
||||
virtual ~MenuScreen() {};
|
||||
};
|
||||
|
||||
void initDisplay();
|
||||
void displayOff();
|
||||
void displayOff(state_t &state);
|
||||
void showVersion();
|
||||
void displayError(const char *error);
|
||||
void handleMenu(state_t &state, bool draw);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue