Projectlab Elektronica-ICT KULeuven
Dependencies: EthernetInterface TMP102 TextLCD mbed-rtos mbed
Display.cpp
- Committer:
- seppeduwe
- Date:
- 2014-03-17
- Revision:
- 4:466d859bfb13
- Parent:
- 1:635e76c52151
File content as of revision 4:466d859bfb13:
#include "Display.h" #include "TextLCD.h" Display::Display() { lcd = new TextLCD(p14, p16, p17, p18, p19, p20); // rs, e, d4-d7 } //set the text on the display void Display::setText(char* text) { lcd->cls(); lcd->locate(0,0); lcd->printf(text); } //set the advanced text on the display void Display::setText(char* text, int value) { lcd->cls(); lcd->locate(0,0); lcd->printf(text,value); }