eLab Team / Mbed 2 deprecated LaLaBox

Dependencies:   mbed CREALIB

Revision:
9:6b8118063819
Parent:
8:fb28b9ec6d6e
Child:
10:983ed805d74f
diff -r fb28b9ec6d6e -r 6b8118063819 main.cpp
--- a/main.cpp	Fri Sep 09 10:43:52 2016 +0000
+++ b/main.cpp	Wed Oct 05 18:55:27 2016 +0000
@@ -1,4 +1,5 @@
 #include "LaLaBox.h"
+Serial pc_uart(PA_2, PA_3);
 
 // ---------------- Local global variables --------------
     
@@ -74,7 +75,7 @@
             ledBand.InsertColorNtimes(3,BLUE);
             ledBand.InsertColorNtimes(1,WHITE);
            ledBand.InsertColorNtimes(4,RED,50.0);
-            ledBand.StartRotation(0.1);
+            ledBand.StartRotation(0.1);  
             PLAY_MUSIC(song_happy_birthday, buzzer);
         break;
        default:
@@ -84,7 +85,7 @@
             state = 0;
          break;
     }
-             myled = !myled;      // To see something is alive
+     myled = !myled;      // To see something is alive
   
 }
 
@@ -96,16 +97,17 @@
     DEBUG("------------------------------------------\n\r"); 
     help();
     DEBUG("------------------------------------------\n\r"); 
+    ledBand.SetColor(BLACK);
  
     CATCH_BUTTON(myButton,pressed);
     
-    PLAY_NOTE(la, buzzer);
-    
+    PLAY_NOTE(la, buzzer);             
+
     wait(2);        // Some delay
     myled = 0;      // Real stuff starts here
- 
- 
-   motorBox.SetDirection(CLOCKWISE); 
+     ledBand.SetColor(BLACK);
+
+     motorBox.SetDirection(CLOCKWISE); 
    while(1) {
         char command;   // Command to execute
         DEBUG(">> ");