Teste de escrita em LCD.

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
Charrua
Date:
Sat May 10 17:50:20 2014 +0000
Commit message:
Teste de escrita em LCD, e aende e apaga LEDs

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 bc250f368b02 TextLCD.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Sat May 10 17:50:20 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/TextLCD/#308d188a2d3a
diff -r 000000000000 -r bc250f368b02 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat May 10 17:50:20 2014 +0000
@@ -0,0 +1,27 @@
+#include "mbed.h"
+#include "TextLCD.h"
+ 
+TextLCD lcd(PTE30, PTE29, PTE23, PTE22, PTE21, PTE20, TextLCD::LCD16x2); // rs, e, d4-d7
+DigitalOut ledA(LED3); 
+DigitalOut ledB(LED2);
+ 
+int main() {
+    ledA=0;
+    ledB=1;
+    while(true) {
+    ledA=!ledA;
+    ledB=!ledB;
+    lcd.printf("Hello World!");
+    lcd.locate(0,1);
+    lcd.printf("   Charrua :)");
+    wait(5);
+    lcd.cls();
+    ledA=!ledA;
+    ledB=!ledB;
+    lcd.printf("E.N.I.D.H.");
+    lcd.locate(0,1);
+    lcd.printf("Dep. Eng. Marit.");
+    wait(3);
+    lcd.cls();
+    }    
+}
diff -r 000000000000 -r bc250f368b02 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat May 10 17:50:20 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8a40adfe8776
\ No newline at end of file