Chronomètre et affichage des résultat sur afficheur LCD

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
Mahfoudh
Date:
Fri Oct 11 17:57:12 2013 +0000
Commit message:
Chronom?tre a base de la carte MBED LPC1768

Changed in this revision

TextLCD.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 916dace94367 TextLCD.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Fri Oct 11 17:57:12 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
diff -r 000000000000 -r 916dace94367 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Oct 11 17:57:12 2013 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#include "TextLCD.h"
+ 
+TextLCD lcd(p24, p26, p27, p28, p29, p30);
+//TextLCD lcd(p15, p16, p17, p18, p19, p20); // rs, e, d4-d7
+Timer t;
+ 
+int main() {
+// Start timer
+    t.start();
+// Clear LCD Screen
+    lcd.cls();
+    wait(1);
+// Print to LCD on first line
+    //lcd.printf("Azul ===> Chrono");
+    lcd.printf("Chrono  Mahfoudh");
+    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);
+    }
+}
diff -r 000000000000 -r 916dace94367 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Oct 11 17:57:12 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/b3110cd2dd17
\ No newline at end of file