Library of Navigator of menu systems
Diff: Navigator.h
- Revision:
- 0:8209f74d51a0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Navigator.h Thu Feb 28 22:19:46 2013 +0000 @@ -0,0 +1,28 @@ +#ifndef NAVIGATOR_H +#define NAVIGATOR_H + +#include "mbed.h" +#include "Menu.h" +#include "TextLCD.h" +#include "RPG.h" + +class Navigator { + private: + + public: + //Navigator(Menu &, RPG &, TextLCD &); + Navigator(Menu &, RPG &, TextLCD *lcd); + Menu activeMenu; + RPG rpg; + TextLCD *lcd; + int direction; + bool selectButton; + + void poll(); + void moveUp(); + void moveDown(); + void printMenu(); + void update(); +}; + +#endif \ No newline at end of file