Seppe Duwe / Mbed 2 deprecated TCPServer

Dependencies:   EthernetInterface TMP102 TextLCD mbed-rtos mbed

Display.cpp

Committer:
seppeduwe
Date:
2014-03-14
Revision:
0:ae3af7d18c4a
Child:
1:635e76c52151

File content as of revision 0:ae3af7d18c4a:

#include "Display.h"
#include "TextLCD.h"

Display::Display()
{
    //setup the LCD
    lcd = new TextLCD(p14, p16, p17, p18, p19, p20); // rs, e, d4-d7
    //print the initial text on it
    printf("LCD is up\n");
}

//set the text on the display
void Display::setText(char* text)
{
    lcd->locate(0,0);
    //lcd->clr();
    printf("Text %s\n\r", text);
    lcd->printf(text);
}