timer

Dependencies:   mbed TextLCD

Revision:
1:9f81ea7031d7
Parent:
0:c56b9f122955
Child:
2:35b1a94fb6c7
diff -r c56b9f122955 -r 9f81ea7031d7 main.cpp
--- a/main.cpp	Mon Nov 30 18:28:15 2015 +0000
+++ b/main.cpp	Mon Nov 30 18:46:51 2015 +0000
@@ -1,11 +1,16 @@
 #include "mbed.h"
 
 Timer t;
+TextLCD lcd(PTD3, PTA12, PTA4, PTA5, PTC8, PTC9, TextLCD::LCD16x2);
 
 int main()
 {
-    t.start();
-    printf("Hello World!\n");
-    t.stop();
-    printf("The time taken was %f seconds\n", t.read());
+    do
+    {
+        t.start();
+        lcd.locate(0,0);
+        lcd.printf("%F", t.read());
+        t.stop();
+    } while(t.read()<60)
+        
 }