NXP fan (in Japan)
/
DKM_TextLCD_LM35
Just a simple sample of TextLCD and LM35 temperature sensor
Revision 0:b319bd1b3313, committed 2010-08-12
- Comitter:
- nxpfan
- Date:
- Thu Aug 12 14:41:43 2010 +0000
- Commit message:
Changed in this revision
diff -r 000000000000 -r b319bd1b3313 TextLCD.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Thu Aug 12 14:41:43 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
diff -r 000000000000 -r b319bd1b3313 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Aug 12 14:41:43 2010 +0000 @@ -0,0 +1,17 @@ +// A simple sample to use TextLCD and LM35 temeperature sensor + +#include "mbed.h" +#include "TextLCD.h" + +TextLCD lcd(p24, p25, p26, p27, p28, p29); // rs, e, d0-d3 +AnalogIn a_in(p20); + +int main() { + lcd.printf("Hello World!\n"); + + while (1) { + lcd.locate( 0, 1 ); + lcd.printf( "%f", a_in * 3.3 * 100 ); + wait( 1.0 ); + } +}
diff -r 000000000000 -r b319bd1b3313 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Aug 12 14:41:43 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9114680c05da