Este programa funciona perfecto

Dependencies:   Keypad TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
DiegoVillaV
Date:
Wed Apr 04 03:38:29 2018 +0000
Commit message:
LCD y Keypad funcionable para todo

Changed in this revision

Keypad.lib Show annotated file Show diff for this revision Revisions of this file
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 bddbdebeea0e Keypad.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Keypad.lib	Wed Apr 04 03:38:29 2018 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/grantphillips/code/Keypad/#4bbd88022a6f
diff -r 000000000000 -r bddbdebeea0e TextLCD.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Wed Apr 04 03:38:29 2018 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/simon/code/TextLCD/#308d188a2d3a
diff -r 000000000000 -r bddbdebeea0e main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Apr 04 03:38:29 2018 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "TextLCD.h"
+#include "Keypad.h"
+
+Serial rs232 (USBTX, USBRX);
+AnalogIn AN0 (PTB0); float valor_adc;
+char Keytale[]= {'1' , '2', '3', 'A',
+                 '4' , '5', '3', 'B',
+                 '7' , '8', '3', 'C',
+                 '*' , '0', '#', 'D'};
+                 
+TextLCD lcd(PTE20,PTE21,PTE22,PTE23,PTE29,PTE30);  //rs en d4 d5 d6 d7
+int main() {
+    lcd.printf("MEDIDA ANALOGA");
+    wait(1);
+    while(true) {
+        valor_adc= AN0;
+        valor_adc= 1000*valor_adc;
+        
+        lcd.printf("%f\n\r",valor_adc);;
+        wait(0.1);
+    }
+}
diff -r 000000000000 -r bddbdebeea0e mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Apr 04 03:38:29 2018 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/235179ab3f27
\ No newline at end of file