Junichi Katsu
/
mbed_blinky__3
テスト用
Fork of mbed_blinky__2 by
main.cpp
- Committer:
- jksoft
- Date:
- 2016-12-24
- Revision:
- 2:9cef3569a596
- Parent:
- 1:f979189cb4ec
File content as of revision 2:9cef3569a596:
#include "mbed.h" DigitalOut myled1(LED1); DigitalOut myled2(LED2); DigitalOut myled3(LED3); DigitalOut myled[4] = {LED1,LED2,LED3,LED4}; int main() { while(1) { for(int i=0;i<4;i++) { myled[i] = 1; wait(0.2); } for(int i=0;i<4;i++) { myled[i] = 0; wait(0.2); } } }