LCD implementation of our project.

Dependencies:   mbed mbed-rtos MLX90614

Item.h

Committer:
ovidiup13
Date:
2015-04-04
Revision:
2:fcde41900fa5
Parent:
0:1e597b0f8b3b
Child:
3:688b62ff6474

File content as of revision 2:fcde41900fa5:

#ifndef _ITEM_H
#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;
        
        //declare pure virtual functions
        virtual void display(void) = 0;
        virtual void update(char c) = 0;
        
        //get title function
        char * getTitle(void){
            return title;
        }
        
        /*
        //constructors
        Item(char *title, ST7565 * lcd, UI * ui){
            this->title = title;
            this->st7565 = lcd;
        }
        Item(void){
            title = NULL;
            st7565 = NULL;
            ui = NULL;
        }
        */
};

#endif