Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 9:6b8118063819
- Parent:
- 8:fb28b9ec6d6e
- Child:
- 10:983ed805d74f
--- 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(">> ");