Masayoshi Takahashi
/
SensorSample
main.cpp
- Committer:
- takahashim
- Date:
- 2012-02-27
- Revision:
- 0:737775c5fc00
File content as of revision 0:737775c5fc00:
#include "mbed.h" #include "TextLCD.h" AnalogIn ain(p15); DigitalOut myled(LED1); TextLCD lcd(p24, p26, p27, p28, p29, p30); float temp; int main() { while(1) { temp = ain * 3.3 * 100; lcd.cls(); lcd.locate(0,0); lcd.printf("temp: %4.2f",temp); wait(1); } }