諒太 宮澤
/
mbed_bord_test2-2
mbedボードテスト LEDアレイ点滅
Revision 0:f62ce1fbe374, committed 2016-04-14
- Comitter:
- manimani3712
- Date:
- Thu Apr 14 03:39:15 2016 +0000
- Commit message:
- ???????????
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 f62ce1fbe374 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Apr 14 03:39:15 2016 +0000 @@ -0,0 +1,47 @@ +#include "mbed.h" + +DigitalOut led1(PTE5); +DigitalOut led2(PTE4); +DigitalOut led3(PTE3); +DigitalOut led4(PTE2); +DigitalOut led5(PTB11); +DigitalOut led6(PTB10); +DigitalOut led7(PTB9); +DigitalOut led8(PTB8); + +int main() { + while(1) { + led1 = 1; + wait(0.2); + led1 = 0; + wait(0.2); + led2 = 0; + wait(0.2); + led2 = 0; + wait(0.2); + led3 = 1; + wait(0.2); + led3 = 0; + wait(0.2); + led4 = 0; + wait(0.2); + led4 = 0; + wait(0.2); + led5 = 1; + wait(0.2); + led5 = 0; + wait(0.2); + led6 = 0; + wait(0.2); + led6 = 0; + wait(0.2); + led7 = 1; + wait(0.2); + led7 = 0; + wait(0.2); + led8 = 0; + wait(0.2); + led8 = 0; + wait(0.2); + } +}
diff -r 000000000000 -r f62ce1fbe374 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Apr 14 03:39:15 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f \ No newline at end of file