implemnt scrollable menu field. Not yet tested
This commit is contained in:
@@ -47,7 +47,9 @@ struct lcd_menu {
|
||||
};
|
||||
|
||||
struct menu_list {
|
||||
void (*update_display)(uint8_t row, const char *data);
|
||||
const char **entry_names;
|
||||
uint32_t entry_count;
|
||||
uint32_t currently_selected;
|
||||
const menu_func_t *submenu_list;
|
||||
};
|
||||
@@ -62,6 +64,12 @@ void menu_entry_enter(struct lcd_menu *menu, menu_func_t parent_func, bool handl
|
||||
|
||||
void menu_override_lcd_output(struct lcd_menu *menu, uint8_t row_num, const char *text);
|
||||
|
||||
void menu_list_display(struct menu_list *list, uint8_t top_row, uint8_t bottom_row);
|
||||
void menu_list_display(struct menu_list *list, uint32_t top_row, uint32_t bottom_row);
|
||||
|
||||
void menu_list_compute_count(struct menu_list *list);
|
||||
|
||||
void menu_list_scroll_down(struct menu_list *list);
|
||||
|
||||
void menu_list_scroll_up(struct menu_list *list);
|
||||
|
||||
#endif /* __MENU_H__ */
|
||||
|
Reference in New Issue
Block a user