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: Menu.cpp
- Revision:
- 6:819049708d51
- Parent:
- 1:84d263c8932d
- Child:
- 8:fbaeab73fe1a
--- a/Menu.cpp Fri Jan 02 15:41:09 2015 +0000 +++ b/Menu.cpp Fri Jan 02 20:49:59 2015 +0000 @@ -12,4 +12,10 @@ selections.push_back(toAdd); } +void Menu::changeText(int position, char *newText) +{ + if ((position >=0) && (position <= selections.size())) { + selections[position].selText = newText; + } +}