LCD implementation of our project.
Dependencies: mbed mbed-rtos MLX90614
Diff: Menu.h
- Revision:
- 2:fcde41900fa5
- Parent:
- 0:1e597b0f8b3b
- Child:
- 3:688b62ff6474
--- a/Menu.h Sat Mar 21 13:26:06 2015 +0000 +++ b/Menu.h Sat Apr 04 18:24:21 2015 +0000 @@ -15,8 +15,9 @@ int const MAX_ITEMS = 16; int const TITLE_LINE = 1; -int const FIRST_ITEM_LINE = 2; +int const FIRST_ITEM_LINE = 1; int const LAST_ITEM_LINE = 7; +int const ITEMS_PER_SCREEN = 7; class Menu: public Item { public: @@ -60,11 +61,6 @@ //update current selection virtual void update(char c); - //get the title of the menu - virtual char * getTitle(void){ - return title; - } - //set the title void setTitle(char * t){ title = t; @@ -76,10 +72,6 @@ private: //display items on a new screen starting with a specific index void display_items(int index); - //draw arrows on right side to indicate there are more items up or down - void draw_arrows(int line, char c); - //draw the circle indicating which item is selected - void draw_selected(void); }; #endif