Library to display menus on TextLCDs. Interaction with functions Up,Down and Select (Buttons or RPG) Based on menu-library from pyeh9
Fork of Menu by
Library to display menus on TextLCDs. Interaction with functions Up,Down and Select (Buttons or RPG) Based on menu-library from pyeh9
Diff: MenuItem.h
- Revision:
- 11:6814cbc83ae0
- Parent:
- 10:2b6ddf53b05e
--- a/MenuItem.h Mon Mar 16 21:05:37 2015 +0000 +++ b/MenuItem.h Wed Jan 13 19:59:21 2016 +0000 @@ -17,15 +17,20 @@ /** default mode: just display the Menu-Text an perform user_action */ mode_default = 0, + /** wait_select: Call user_action and then only accept a select * use for displaying text, values,... * the menu is paused until select is pressed */ mode_wait_select = 1, + /** mode_yes_no: show text and ask user for yes/no * */ - mode_yes_no = 2 + mode_yes_no = 2, + + //** mode_long_text: show a long text with scrollbars and wait for select() + mode_show_longtext = 3 }; /** structure to pass data to menu and back @@ -33,6 +38,7 @@ struct menu_data{ // Longer text to display. // For Yes/No-Question + // or show_longtext char * text; //Yes/No Value In and Out bool yes_no;