SAGAR PATEL
/
mbed_blinky-1
mail file changes
main.cpp@0:37af04134270, 2019-01-21 (annotated)
- Committer:
- sagu25patel
- Date:
- Mon Jan 21 04:57:04 2019 +0000
- Revision:
- 0:37af04134270
main file changes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sagu25patel | 0:37af04134270 | 1 | #include "mbed.h" |
sagu25patel | 0:37af04134270 | 2 | |
sagu25patel | 0:37af04134270 | 3 | DigitalOut myled(LED1); |
sagu25patel | 0:37af04134270 | 4 | |
sagu25patel | 0:37af04134270 | 5 | int main() { |
sagu25patel | 0:37af04134270 | 6 | while(1) { |
sagu25patel | 0:37af04134270 | 7 | myled = 1; |
sagu25patel | 0:37af04134270 | 8 | wait(0.2); |
sagu25patel | 0:37af04134270 | 9 | myled = 0; |
sagu25patel | 0:37af04134270 | 10 | wait(0.2); |
sagu25patel | 0:37af04134270 | 11 | myled = 1; |
sagu25patel | 0:37af04134270 | 12 | wait(0.2); |
sagu25patel | 0:37af04134270 | 13 | } |
sagu25patel | 0:37af04134270 | 14 | } |