Junichi Katsu
/
LcdSensor_test
温度センサーサンプルプログラム mbedセミナー演習3
Revision 0:0d8380b11a05, committed 2011-08-26
- Comitter:
- jksoft
- Date:
- Fri Aug 26 15:47:21 2011 +0000
- Commit message:
Changed in this revision
diff -r 000000000000 -r 0d8380b11a05 TextLCD.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Fri Aug 26 15:47:21 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
diff -r 000000000000 -r 0d8380b11a05 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Aug 26 15:47:21 2011 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +#include "TextLCD.h" + +TextLCD lcd(p24, p26, p27, p28, p29, p30); // rs, e, d4-d7 +AnalogIn ain(p15); + +int main() { + float tmp; + + while(1) { + lcd.locate(0,0); + tmp = (ain - 0.1818)/0.00303; + lcd.printf("temp:%2.2f",tmp); + wait(0.5); + } +} \ No newline at end of file
diff -r 000000000000 -r 0d8380b11a05 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Aug 26 15:47:21 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912