masamitsu shibata
/
test1
aaa
main.cpp@0:dd857692398d, 2014-04-28 (annotated)
- Committer:
- 12f2025e
- Date:
- Mon Apr 28 07:33:59 2014 +0000
- Revision:
- 0:dd857692398d
aa
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
12f2025e | 0:dd857692398d | 1 | #include "mbed.h" |
12f2025e | 0:dd857692398d | 2 | |
12f2025e | 0:dd857692398d | 3 | BusOut leds(P1_13, P1_14, P1_22, P0_17, P0_18, P0_19, P1_15, P0_1); |
12f2025e | 0:dd857692398d | 4 | |
12f2025e | 0:dd857692398d | 5 | int main() { |
12f2025e | 0:dd857692398d | 6 | while(1) { |
12f2025e | 0:dd857692398d | 7 | leds = 0xff; |
12f2025e | 0:dd857692398d | 8 | wait(0.3); |
12f2025e | 0:dd857692398d | 9 | leds = 0; |
12f2025e | 0:dd857692398d | 10 | wait(0.2); |
12f2025e | 0:dd857692398d | 11 | } |
12f2025e | 0:dd857692398d | 12 | } |