Hajime Muraki
/
swled
aa
Diff: main.cpp
- Revision:
- 0:b145ea9e6320
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Jul 11 10:43:27 2013 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +DigitalIn mysw(p7); + +int main() { + mysw.mode(PullUp); + while(1) { + myled = mysw; + //wait(0.2); + } +}