PER Firmware
Loading...
Searching...
No Matches
lcd.h
Go to the documentation of this file.
1#ifndef LCD_H
2#define LCD_H
3
4#include <stdint.h>
5
13typedef enum : uint8_t {
14 PAGE_RACE = 0,
15 PAGE_FAULTS = 1,
16 PAGE_CALIBRATION = 2,
17 NUM_PAGES, // leave as auto to count number of pages
18 PAGE_PREFLIGHT, // not selectable, only shown on power on
19} page_t;
20
21typedef struct {
22 void (*update)(void);
23 void (*move_up)(void);
24 void (*move_down)(void);
25 void (*select)(void);
26 void (*telemetry)(void);
27 char *string;
29
30void advancePage();
31void backPage();
32void selectItem();
33void moveUp();
34void moveDown();
35void updatePage();
37
38#endif // LCD_H
void advancePage()
Advances to the next selectable page.
Definition lcd.c:67
void updateTelemetryPages()
Updates current telemetry page by calling its handler if available.
Definition lcd.c:144
void updatePage()
Updates LCD display page.
Definition lcd.c:95
void backPage()
Moves to the previous selectable page.
Definition lcd.c:79
Definition lcd.h:21