hello world on lcd

Dependencies:   TextLCD mbed

Fork of HelloLCD by jim hamblen

Files at this revision

API Documentation at this revision

Comitter:
kit2
Date:
Sat Aug 31 06:14:11 2013 +0000
Parent:
0:bba654cca6d6
Commit message:
hello world on lcd;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Jul 08 00:42:07 2011 +0000
+++ b/main.cpp	Sat Aug 31 06:14:11 2013 +0000
@@ -1,22 +1,8 @@
 #include "mbed.h"
 #include "TextLCD.h"
 
-TextLCD lcd(p10, p12, p15, p16, p29, p30); // rs, e, d0-d3
-Timer t;
+TextLCD lcd(p24, p25, p27, p28, p29, p30); // rs, e, d0-d3
 
 int main() {
-// Start timer
-    t.start();
-// Clear LCD Screen
-    lcd.cls();
-    wait(1);
-// Print to LCD on first line
-    lcd.printf("Hello LCD World!\n");
-    while (1) {
-// Move cursor to start of second display line
-        lcd.locate(0,1);
-// Print elapsed time from timer on LCD
-        lcd.printf("%e sec", t.read());
-        wait(.2);
-    }
+    lcd.printf("Hello World!\n");
 }