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: N5110 Ping_Pong beep mbed Servo
Diff: main.cpp
- Revision:
- 6:70830f1ed62e
- Parent:
- 5:722864843189
- Child:
- 9:80898ce9d4d5
--- a/main.cpp Thu May 05 11:56:13 2016 +0000 +++ b/main.cpp Sat May 07 14:40:54 2016 +0000 @@ -131,7 +131,7 @@ display.printString("PING PONG[o]",5,2); display.printString("G of Life",5,3); display.printString("Credits",5,4); - buzzer.beep(500,0.5); + //buzzer.beep(500,0.5); serial.printf("ping pong \n"); /** *As shown bellow I have used a interrupt for the g_switch2_flag to show that the selection can be done using two diferent methods. @@ -146,7 +146,7 @@ */ if(button==1) { // if it is a external switch then it needs to be a 1 serial.printf("button == 1 ping pong has been selected\n "); - tone1(); + //tone1(); yellow =1; light(); pongGame(); @@ -174,13 +174,13 @@ display.printString("PING PONG",5,2); display.printString("G of Life[.]",5,3); display.printString("Credits ",5,4); - buzzer.beep(500,0.5); + // buzzer.beep(500,0.5); serial.printf("g of life\n"); if(button==1) {// if it is a external switch then it needs to be a 1 serial.printf("button ==1 game of life has been selected \n"); - tone2(); + tone2(); green=1; light(); gameOfLife(); @@ -207,7 +207,7 @@ display.printString("PING PONG ",5,2); display.printString("G of Life ",5,3); display.printString("Credits [*]",5,4); - buzzer.beep(500,0.5); + // buzzer.beep(500,0.5); serial.printf("credits \n"); if (button==1) {