Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed mbed-rtos MLX90614
Item.h
- Committer:
- ovidiup13
- Date:
- 2015-03-20
- Revision:
- 0:1e597b0f8b3b
- Child:
- 2:fcde41900fa5
File content as of revision 0:1e597b0f8b3b:
#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;
virtual char * getTitle(void) = 0;
//constructors
Item(char *title, ST7565 * lcd, UI * ui){
this->title = title;
this->st7565 = lcd;
}
Item(void){
title = NULL;
st7565 = NULL;
ui = NULL;
}
};
#endif