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.
Dependencies: mbed 3875_Individualproject
Diff: main/main.cpp
- Revision:
- 67:f307ff6ec083
- Parent:
- 66:3130be689176
- Child:
- 68:14f2a5315d88
--- a/main/main.cpp Wed May 13 13:15:03 2020 +0000 +++ b/main/main.cpp Mon Jun 01 14:30:56 2020 +0000 @@ -47,6 +47,8 @@ robot.lcd_goto_xy(0,1); robot.lcd_print("= start ", 10); + robot.play_music(go, 13); + calibrate(); robot.lcd_clear(); @@ -1037,6 +1039,8 @@ void left() { + robot.play_music("gg",3); + leds = 0b1100; while (sensor[0] > SENS_THRESH) { robot.scan(); } @@ -1051,6 +1055,8 @@ void right() { + robot.play_music("ee",3); + leds = 0b0011; while (sensor[4] > SENS_THRESH) { robot.scan(); } @@ -1065,6 +1071,8 @@ void back() { + robot.play_music("ggcc",5); + leds = 0b1111; // robot.reverse(speed); // wait(0.1); @@ -1211,6 +1219,7 @@ while(1) { if( _switch == false ) { + //robot.play_music(fugue,10); robot.lcd_clear(); robot.lcd_goto_xy(0,0); robot.lcd_print(" ENTER ", 10);