takuya .
/
test_led_BUC
main.cpp@0:974a44f3ff30, 2010-04-04 (annotated)
- Committer:
- takuya
- Date:
- Sun Apr 04 04:56:39 2010 +0000
- Revision:
- 0:974a44f3ff30
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
takuya | 0:974a44f3ff30 | 1 | #include "mbed.h" |
takuya | 0:974a44f3ff30 | 2 | |
takuya | 0:974a44f3ff30 | 3 | unsigned char i; |
takuya | 0:974a44f3ff30 | 4 | |
takuya | 0:974a44f3ff30 | 5 | BusOut leds(LED4, LED3, LED2, LED1); |
takuya | 0:974a44f3ff30 | 6 | |
takuya | 0:974a44f3ff30 | 7 | int main() { |
takuya | 0:974a44f3ff30 | 8 | while(1) { |
takuya | 0:974a44f3ff30 | 9 | leds = leds+1; |
takuya | 0:974a44f3ff30 | 10 | wait(0.5); |
takuya | 0:974a44f3ff30 | 11 | } |
takuya | 0:974a44f3ff30 | 12 | } |