Adjust the LCD_Menu to use the mBed Application board resources
Dependents: class_project_main
Fork of SerialLCD_Menu by
Navigator.h
- Committer:
- jakowisp
- Date:
- 2013-09-12
- Revision:
- 11:af7687f1a985
- Parent:
- 6:a28c1967bb83
File content as of revision 11:af7687f1a985:
#ifndef NAVIGATOR_H #define NAVIGATOR_H #include "mbed.h" #include "Menu.h" #include "C12832_lcd.h" class Navigator { private: public: Navigator(Menu *, C12832_LCD *); Menu *activeMenu; // the current menu - can change when RPG is pushed on selection with child menu C12832_LCD *lcd; bool lastButton[3], button[3]; int bottom; // the index of the last item of current menu int cursorPos; // what selection the cursor points to int cursorLine; // what line of the lcd the cursor is on. 1 = first line, 2 = second line void poll(uint8_t *returnValue=NULL); // repeatedly call this function to determine if RPG is being used void moveUp(); void moveDown(); void printMenu(); void printCursor(); void setButtons(); }; #endif