Jonathan Moreno
/
mbed_blinker
mbed blinker code
main.cpp@0:97226e931339, 2018-11-06 (annotated)
- Committer:
- jmoreno10
- Date:
- Tue Nov 06 18:37:15 2018 +0000
- Revision:
- 0:97226e931339
- Child:
- 1:60c416914fc0
Version 1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jmoreno10 | 0:97226e931339 | 1 | // Version 1 |
jmoreno10 | 0:97226e931339 | 2 | |
jmoreno10 | 0:97226e931339 | 3 | #include "mbed.h" |
jmoreno10 | 0:97226e931339 | 4 | |
jmoreno10 | 0:97226e931339 | 5 | DigitalOut myled(LED1); |
jmoreno10 | 0:97226e931339 | 6 | |
jmoreno10 | 0:97226e931339 | 7 | int main() { |
jmoreno10 | 0:97226e931339 | 8 | while(1) { |
jmoreno10 | 0:97226e931339 | 9 | myled = 1; |
jmoreno10 | 0:97226e931339 | 10 | wait(0.2); |
jmoreno10 | 0:97226e931339 | 11 | myled = 0; |
jmoreno10 | 0:97226e931339 | 12 | wait(0.2); |
jmoreno10 | 0:97226e931339 | 13 | } |
jmoreno10 | 0:97226e931339 | 14 | } |