krishna kumar
/
ledblinking_slowdown
led test fork
Fork of ledblinking by
main.cpp@0:87f47f8a67a8, 2016-03-11 (annotated)
- Committer:
- krishna54504
- Date:
- Fri Mar 11 04:12:02 2016 +0000
- Revision:
- 0:87f47f8a67a8
- Child:
- 1:967bb8e8290a
led
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
krishna54504 | 0:87f47f8a67a8 | 1 | #include "mbed.h" |
krishna54504 | 0:87f47f8a67a8 | 2 | |
krishna54504 | 0:87f47f8a67a8 | 3 | DigitalOut myled(LED1); |
krishna54504 | 0:87f47f8a67a8 | 4 | |
krishna54504 | 0:87f47f8a67a8 | 5 | int main() { |
krishna54504 | 0:87f47f8a67a8 | 6 | while(1) { |
krishna54504 | 0:87f47f8a67a8 | 7 | myled = 1; |
krishna54504 | 0:87f47f8a67a8 | 8 | wait(0.2); |
krishna54504 | 0:87f47f8a67a8 | 9 | myled = 0; |
krishna54504 | 0:87f47f8a67a8 | 10 | wait(0.2); |
krishna54504 | 0:87f47f8a67a8 | 11 | } |
krishna54504 | 0:87f47f8a67a8 | 12 | } |