sosa Multi

Dependencies:   TextLCD mbed

Revision:
0:4eab278f4df9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Sep 17 15:48:13 2014 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "TextLCD.h"
+float volt;
+TextLCD lcd(p20,p19,p21,p22,p23,p24); //rs,e,d4,d5,d6,d7
+AnalogIn ain(p18);
+
+int main() {
+    while(1) {
+        volt=3.1*ain.read();
+        lcd.locate(0,0);
+        lcd.printf("El Voltaje es de:");
+        lcd.locate(0,1);
+        lcd.printf("%f",volt);
+        wait(1);
+    }
+}