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.cpp
- Revision:
- 9:c9df0b33d176
- Child:
- 10:2b6ddf53b05e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MenuItem.cpp Fri Mar 13 18:44:49 2015 +0000 @@ -0,0 +1,6 @@ +#include "mbed.h" +#include "MenuItem.h" +#include "TextLCD.h" + +MenuItem::MenuItem(void (*userAction)(), int position, Menu *child, char* text) : + userAction(userAction), selText(text), pos(position), childMenu(child) {}