fork of Official_mBuino
Dependencies: mbed
Fork of Official_mBuino by
Diff: main.cpp
- Revision:
- 3:59a791514a87
- Parent:
- 2:4430b59c748f
- Child:
- 4:f91b7024a784
--- a/main.cpp Wed May 20 21:15:23 2015 +0000 +++ b/main.cpp Wed May 20 17:41:33 2015 -0400 @@ -25,18 +25,17 @@ float delayMe = .01; int main() { + while(1) { delayTime = 0.05; - for(int x = 0; x < 7; x++) - { + for(int x = 0; x < 7; x++) { LED[x] = 1; // turn on wait(delayMe); // delay LED[x] = 0; // turn off wait(delayTime); // delay } - for(int x = 6; x >= 0; x--) - { + for(int x = 6; x >= 0; x--) { LED[x] = 1; // turn on wait(.2); // delay @@ -44,13 +43,11 @@ wait(delayTime); // delay } - for(int x = 0; x < 7; x++) - { + for(int x = 0; x < 7; x++) { LED[x] = 1; // turn on wait(delayTime); // delay } - for(int x = 6; x >= 0; x--) - { + for(int x = 6; x >= 0; x--) { LED[x] = 0; // turn off wait(delayTime); // delay }