Kiyoshi Hayakawa
/
app-board-potention
potention test program
Diff: main.cpp
- Revision:
- 0:ea5527eaa968
- Child:
- 1:29f7f8843c31
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Feb 12 15:21:21 2013 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + +AnalogIn ain(p19); +DigitalOut led(LED1); + +int main() { + while (1){ + if(ain > 0.3) { + led = 1; + } else { + led = 0; + } + } +} \ No newline at end of file