LCD implementation of our project.
Dependencies: mbed mbed-rtos MLX90614
Diff: Item.h
- Revision:
- 3:688b62ff6474
- Parent:
- 2:fcde41900fa5
- Child:
- 4:024e6a9c2ebf
--- a/Item.h Sat Apr 04 18:24:21 2015 +0000 +++ b/Item.h Sun Apr 26 16:29:53 2015 +0000 @@ -2,20 +2,16 @@ #define _ITEM_H #include "st7565LCD.h" -#include "UserInterface.h" - #define LEFT_MARGIN 5 #define DEFAULT_COLOR 20 -class UI; - class Item { public: //name char * title; ST7565 * st7565; - UI * ui; bool isSelectable; + Item *selectedScreen, *back; //declare pure virtual functions virtual void display(void) = 0; @@ -26,18 +22,13 @@ return title; } - /* - //constructors - Item(char *title, ST7565 * lcd, UI * ui){ - this->title = title; - this->st7565 = lcd; + Item * getSelectedScreen(){ + return selectedScreen; } - Item(void){ - title = NULL; - st7565 = NULL; - ui = NULL; + + void setSelectedScreen(Item *s){ + selectedScreen = s; } - */ }; #endif \ No newline at end of file