Michael Pascual / Mbed 2 deprecated lcd

Dependencies:   mbed

Committer:
mpascual
Date:
Sat Oct 16 12:01:38 2010 +0000
Revision:
2:6072f52037b0
Parent:
1:a52a5d5b2ce2
Child:
3:6854a442d2c6

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mpascual 0:14f8cb177d4d 1 #include "mbed.h"
mpascual 0:14f8cb177d4d 2 #include "TextLCD.h"
mpascual 0:14f8cb177d4d 3
mpascual 2:6072f52037b0 4 TextLCD lcd(p10, p12, p15, p16, p29, p30, TextLCD::LCD20x2); // rs, e, d0-d3
mpascual 0:14f8cb177d4d 5 AnalogIn ain(p20);
mpascual 0:14f8cb177d4d 6
mpascual 0:14f8cb177d4d 7
mpascual 0:14f8cb177d4d 8 int main() {
mpascual 2:6072f52037b0 9 //while(1) {
mpascual 2:6072f52037b0 10 lcd.printf("Percent is %.1f\n",100*ain.read());
mpascual 2:6072f52037b0 11 lcd.printf("Voltage is %.3f\n",3.3*ain.read());
mpascual 2:6072f52037b0 12 }
mpascual 2:6072f52037b0 13 //}