
sosa Multi
Revision 0:4eab278f4df9, committed 2014-09-17
- Comitter:
- ReneCA
- Date:
- Wed Sep 17 15:48:13 2014 +0000
- Commit message:
- Sosamulti;
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Wed Sep 17 15:48:13 2014 +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 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); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Sep 17 15:48:13 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9327015d4013 \ No newline at end of file