Jonathan Moreno
/
mbed_blinker
mbed blinker code
main.cpp@2:9610d7afd4e3, 2018-11-06 (annotated)
- Committer:
- jmoreno10
- Date:
- Tue Nov 06 19:06:14 2018 +0000
- Revision:
- 2:9610d7afd4e3
- Parent:
- 1:60c416914fc0
Added a comment to Version 2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jmoreno10 | 1:60c416914fc0 | 1 | // Version 2 |
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 | 1:60c416914fc0 | 10 | wait(0.5); |
jmoreno10 | 0:97226e931339 | 11 | myled = 0; |
jmoreno10 | 1:60c416914fc0 | 12 | wait(0.5); |
jmoreno10 | 0:97226e931339 | 13 | } |
jmoreno10 | 0:97226e931339 | 14 | } |
jmoreno10 | 2:9610d7afd4e3 | 15 | |
jmoreno10 | 2:9610d7afd4e3 | 16 | // comment in Version 2 |