mbed official
/
BusOut_HelloWorld
BusOut Hello World
mbed 2 and mbed OS 5
This is an mbed 2 example. For an mbed-os example, please see:
Import programBusOut_HelloWorld
BusOut Hello World
main.cpp@0:717993c337df, 2013-02-11 (annotated)
- Committer:
- mbed_official
- Date:
- Mon Feb 11 17:29:01 2013 +0000
- Revision:
- 0:717993c337df
Hello World for BusOut
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 0:717993c337df | 1 | #include "mbed.h" |
mbed_official | 0:717993c337df | 2 | |
mbed_official | 0:717993c337df | 3 | BusOut myleds(LED1, LED2, LED3, LED4); |
mbed_official | 0:717993c337df | 4 | |
mbed_official | 0:717993c337df | 5 | int main() { |
mbed_official | 0:717993c337df | 6 | while(1) { |
mbed_official | 0:717993c337df | 7 | for(int i=0; i<16; i++) { |
mbed_official | 0:717993c337df | 8 | myleds = i; |
mbed_official | 0:717993c337df | 9 | wait(0.25); |
mbed_official | 0:717993c337df | 10 | } |
mbed_official | 0:717993c337df | 11 | } |
mbed_official | 0:717993c337df | 12 | } |