Adjust the LCD_Menu to use the mBed Application board resources

Dependents:   class_project_main

Fork of SerialLCD_Menu by Mark Shuck

Committer:
jakowisp
Date:
Fri Aug 30 01:16:16 2013 +0000
Revision:
6:a28c1967bb83
Parent:
4:343f2993a66b
Child:
11:af7687f1a985
Add changes to use the resourses on the mBed Application board

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pyeh9 1:84d263c8932d 1 #ifndef NAVIGATOR_H
pyeh9 1:84d263c8932d 2 #define NAVIGATOR_H
pyeh9 1:84d263c8932d 3
pyeh9 1:84d263c8932d 4 #include "mbed.h"
pyeh9 1:84d263c8932d 5 #include "Menu.h"
jakowisp 6:a28c1967bb83 6 #include "C12832_lcd.h"
pyeh9 1:84d263c8932d 7
pyeh9 1:84d263c8932d 8 class Navigator {
pyeh9 1:84d263c8932d 9 private:
pyeh9 1:84d263c8932d 10
pyeh9 1:84d263c8932d 11 public:
jakowisp 6:a28c1967bb83 12 Navigator(Menu *, C12832_LCD *);
pyeh9 2:2654dc659298 13 Menu *activeMenu; // the current menu - can change when RPG is pushed on selection with child menu
mshuck 4:343f2993a66b 14
jakowisp 6:a28c1967bb83 15 C12832_LCD *lcd;
jakowisp 6:a28c1967bb83 16 bool lastButton[3], button[3];
pyeh9 1:84d263c8932d 17
pyeh9 1:84d263c8932d 18
pyeh9 2:2654dc659298 19 int bottom; // the index of the last item of current menu
pyeh9 2:2654dc659298 20 int cursorPos; // what selection the cursor points to
pyeh9 1:84d263c8932d 21 int cursorLine; // what line of the lcd the cursor is on. 1 = first line, 2 = second line
pyeh9 1:84d263c8932d 22
pyeh9 2:2654dc659298 23 void poll(); // repeatedly call this function to determine if RPG is being used
pyeh9 1:84d263c8932d 24 void moveUp();
pyeh9 1:84d263c8932d 25 void moveDown();
pyeh9 1:84d263c8932d 26 void printMenu();
pyeh9 1:84d263c8932d 27 void printCursor();
mshuck 4:343f2993a66b 28 void setButtons();
pyeh9 1:84d263c8932d 29 };
pyeh9 1:84d263c8932d 30
pyeh9 1:84d263c8932d 31 #endif