Kiyoshi Hayakawa
/
app-board-potention
potention test program
main.cpp
- Committer:
- khayakawa
- Date:
- 2013-09-16
- Revision:
- 1:29f7f8843c31
- Parent:
- 0:ea5527eaa968
File content as of revision 1:29f7f8843c31:
#include "mbed.h" #include "C12832_lcd.h" C12832_LCD lcd; AnalogIn ain1(p20); AnalogIn ain2(p19); DigitalOut led(LED1); int main() { lcd.cls(); while (1){ lcd.locate(0,3); lcd.printf("potention1 : %.2f\n", ain1.read()); lcd.locate(0,15); lcd.printf("potention2 : %.2f\n", ain2.read()); wait(0.1); } }