Junichi Katsu
/
Grove_Botton
GROVE - ボタン サンプルプログラム
Revision 0:904589e1d71e, committed 2013-11-29
- Comitter:
- jksoft
- Date:
- Fri Nov 29 07:17:36 2013 +0000
- Commit message:
- Rev1
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 904589e1d71e main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Nov 29 07:17:36 2013 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +DigitalIn Sw(p5); + +int main() { + while(1) { + if(Sw==1){ + myled = 1; + } else { + myled = 0; + } + wait(0.2); + } +}
diff -r 000000000000 -r 904589e1d71e mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Nov 29 07:17:36 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f \ No newline at end of file