![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
The example program for mbed pin-compatible platforms
main.cpp@0:f15e8919f28b, 2015-03-13 (annotated)
- Committer:
- asjgrupo4
- Date:
- Fri Mar 13 15:38:47 2015 +0000
- Revision:
- 0:f15e8919f28b
hello world
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
asjgrupo4 | 0:f15e8919f28b | 1 | #include "mbed.h" |
asjgrupo4 | 0:f15e8919f28b | 2 | |
asjgrupo4 | 0:f15e8919f28b | 3 | DigitalOut myled(LED1); |
asjgrupo4 | 0:f15e8919f28b | 4 | |
asjgrupo4 | 0:f15e8919f28b | 5 | int main() { |
asjgrupo4 | 0:f15e8919f28b | 6 | while(1) { |
asjgrupo4 | 0:f15e8919f28b | 7 | myled = 1; |
asjgrupo4 | 0:f15e8919f28b | 8 | wait(0.2); |
asjgrupo4 | 0:f15e8919f28b | 9 | myled = 0; |
asjgrupo4 | 0:f15e8919f28b | 10 | wait(0.2); |
asjgrupo4 | 0:f15e8919f28b | 11 | } |
asjgrupo4 | 0:f15e8919f28b | 12 | } |