masayushi nisino
/
test1
aaa
main.cpp
- Committer:
- 12f2039e
- Date:
- 2014-06-03
- Revision:
- 0:77cdf32df2bb
File content as of revision 0:77cdf32df2bb:
#include "mbed.h" BusOut leds(P1_13,P1_14,P1_22,P0_17,P0_18,P0_19,P1_15,P0_1); int main() { while(1) { leds = 0x01; wait(0.2); leds = 0x00; wait(0.2); leds = 0xff; wait(0.2); leds = 0x01; wait(0.2); leds = 0x02; wait(0.2); leds = 0x04; wait(0.2); leds = 0x08; wait(0.2); leds = 0x10; wait(0.2); leds = 0x20; wait(0.2); leds = 0x40; wait(0.2); leds = 0x80; wait(0.2); leds = 0xff; wait(0.1); leds = 0x00; wait(0.1); leds = 0xff; wait(0.1); leds = 0x00; wait(0.1); leds = 0xff; wait(0.5); } }