Seppe Duwe / Mbed 2 deprecated TCPServer

Dependencies:   EthernetInterface TMP102 TextLCD mbed-rtos mbed

Revision:
1:635e76c52151
Parent:
0:ae3af7d18c4a
--- a/Display.cpp	Fri Mar 14 19:41:14 2014 +0000
+++ b/Display.cpp	Sun Mar 16 15:08:10 2014 +0000
@@ -3,17 +3,20 @@
 
 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->cls();
     lcd->locate(0,0);
-    //lcd->clr();
-    printf("Text %s\n\r", text);
     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);
 }
\ No newline at end of file