sosa Multi

Dependencies:   TextLCD mbed

main.cpp

Committer:
ReneCA
Date:
2014-09-17
Revision:
0:4eab278f4df9

File content as of revision 0:4eab278f4df9:

#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);
    }
}