
blink
main.cpp@0:a083fefbc4d5, 2019-10-07 (annotated)
- Committer:
- sergio_restrepo
- Date:
- Mon Oct 07 23:27:25 2019 +0000
- Revision:
- 0:a083fefbc4d5
blink
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sergio_restrepo | 0:a083fefbc4d5 | 1 | #include "mbed.h" |
sergio_restrepo | 0:a083fefbc4d5 | 2 | |
sergio_restrepo | 0:a083fefbc4d5 | 3 | DigitalOut myled(LED1); |
sergio_restrepo | 0:a083fefbc4d5 | 4 | |
sergio_restrepo | 0:a083fefbc4d5 | 5 | int main() { |
sergio_restrepo | 0:a083fefbc4d5 | 6 | while(1) { |
sergio_restrepo | 0:a083fefbc4d5 | 7 | myled = 1; |
sergio_restrepo | 0:a083fefbc4d5 | 8 | wait(0.1); |
sergio_restrepo | 0:a083fefbc4d5 | 9 | myled = 0; |
sergio_restrepo | 0:a083fefbc4d5 | 10 | wait(0.6); |
sergio_restrepo | 0:a083fefbc4d5 | 11 | } |
sergio_restrepo | 0:a083fefbc4d5 | 12 | } |