hiroki sugegaya
/
test1
a
main.cpp
- Committer:
- 12f2029h
- Date:
- 2014-06-02
- Revision:
- 0:fe474623a244
- Child:
- 1:7afe390ddda9
File content as of revision 0:fe474623a244:
#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 = 0xff; wait(0.2); leds = 0x00; wait(0.2); leds = 0xff; wait(0.2); leds = 0x00; wait(0.2); leds = 0x80; wait(0.2); leds = 0x40; wait(0.2); leds = 0x20; wait(0.2); leds = 0x10; wait(0.2); leds = 0x08; wait(0.2); leds = 0x04; wait(0.2); leds = 0x02; wait(0.2); leds = 0x01; 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 = 0x81; wait(0.2); leds = 0x42; wait(0.2); leds = 0x24; wait(0.2); leds = 0x18; wait(0.2); leds = 0x24; wait(0.2); leds = 0x42; wait(0.2); leds = 0x81; } }