krishna kumar
/
ledblinking_slowdown
led test fork
Fork of ledblinking by
Diff: main.cpp
- Revision:
- 1:967bb8e8290a
- Parent:
- 0:87f47f8a67a8
--- a/main.cpp Fri Mar 11 04:12:02 2016 +0000 +++ b/main.cpp Fri Mar 11 04:20:39 2016 +0000 @@ -2,11 +2,15 @@ DigitalOut myled(LED1); -int main() { +int main() + +{ + int i=0; while(1) { - myled = 1; - wait(0.2); + myled = i &1; + wait(0.25); myled = 0; wait(0.2); + i++; } }