Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
bayvazov94
Date:
Tue Mar 22 19:56:37 2016 +0000
Commit message:
LSD display

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Tue Mar 22 19:56:37 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/TextLCD/#308d188a2d3a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Mar 22 19:56:37 2016 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "TextLCD.h"
+ 
+TextLCD lcd(p15, p16, p17, p18, p19, p20, TextLCD::LCD16x2B); 
+ 
+int main() {
+ 
+    for ( float speed = 1.25; speed<=300; speed += 2.574){
+  lcd.cls();
+    wait(0.001);
+    lcd.printf(" %6.2f", speed);
+   lcd.locate(0,1);
+   lcd.printf("KM/H");
+   wait(0.5);
+   }
+ 
+    }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Mar 22 19:56:37 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/c0f6e94411f5
\ No newline at end of file