Dependencies:   Motor

(notes)

Revision:
1:ad77fbbd36cd
Parent:
0:a9a4c0fd5f8a
Child:
2:b57d7156830c
--- a/main.cpp	Tue Nov 27 18:01:29 2018 +0000
+++ b/main.cpp	Tue Nov 27 18:08:29 2018 +0000
@@ -45,17 +45,13 @@
         //white with a slow fade to black dimming effect
         for (float x=1.0; x>=0.0001; x=x*0.99) {
             myRGBled.write(x, x, x);
-            wait(0.005);
+            Thread::wait(0.005);
         }
         Thread::wait(100);
     }
-}
-    
-        
+}    
 
 int main() {
-
-    
     // Start threads
     thread1.start(item_thread);