proyectotecnicas
/
LCD_test_teclado2
prueba teclado matricial 4x3
Fork of LCD_test_teclado by
Diff: main.cpp
- Revision:
- 0:a9f60dff8cb6
- Child:
- 1:85232e54cfcf
diff -r 000000000000 -r a9f60dff8cb6 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Nov 26 21:18:11 2015 +0000 @@ -0,0 +1,26 @@ +#include "mbed.h" +#include "TextLCD.h" +#include "AnalogIn.h" + +AnalogIn leer(PTC1); + +TextLCD lcd(PTE20, PTE21, PTE22, PTE23, PTB20, PTE30, TextLCD::LCD16x2); + +int main() { + +float lectura; +float voltaje; + + while(1){ + + lectura = leer.read(); + voltaje = lectura*3.3; + lcd.cls(); + lcd.printf("%f",lectura); + lcd.locate(1,1); + lcd.printf("%f", voltaje); + wait(2); + + + } +}