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: EthernetInterface TMP102 TextLCD mbed-rtos mbed
Diff: Display.cpp
- Revision:
- 0:ae3af7d18c4a
- Child:
- 1:635e76c52151
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Display.cpp Fri Mar 14 19:41:14 2014 +0000
@@ -0,0 +1,19 @@
+#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);
+}
\ No newline at end of file