fork of Official_mBuino

Dependencies:   mbed

Fork of Official_mBuino by David Yeske

Files at this revision

API Documentation at this revision

Comitter:
David Yeske
Date:
Wed May 20 17:41:33 2015 -0400
Parent:
2:4430b59c748f
Child:
4:f91b7024a784
Commit message:
doing this from home

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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
         }