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: menu_funtions/menu.h
- Revision:
- 5:722864843189
- Parent:
- 0:bf56ee79c09e
- Child:
- 9:80898ce9d4d5
--- a/menu_funtions/menu.h Thu May 05 11:41:55 2016 +0000 +++ b/menu_funtions/menu.h Thu May 05 11:56:13 2016 +0000 @@ -1,6 +1,7 @@ /** @file menu.h @brief Header file containing funtions used for my menu . +@code The library N5110 belongs to Dr Evans */ #include "N5110.h" @@ -46,38 +47,38 @@ -// the following funtions are to make different buzzer increase in size to make it look like a explosion. +/** the following funtions are to make different buzzer increase in size to make it look like a explosion.*/ lcd1.drawCircle(WIDTH/2,HEIGHT/2,8,1); // x,y,radius,black fill. buzzer.beep(500,0.5); - lcd1.drawCircle(WIDTH/2,HEIGHT/2,10,2); // x,y,radius,white fill. + lcd1.drawCircle(WIDTH/2,HEIGHT/2,10,2); /** x,y,radius,white fill.*/ wait(0.020); buzzer.beep(600,0.2); - lcd1.drawCircle(WIDTH/2,HEIGHT/2,15,1); // x,y,radius,transparent with outline. + lcd1.drawCircle(WIDTH/2,HEIGHT/2,15,1); /** x,y,radius,transparent with outline.*/ wait(0.030); buzzer.beep(700,0.2); lcd1.drawCircle(WIDTH/2,HEIGHT/2,20,0); wait(0.020); buzzer.beep(800,0.2); - lcd1.drawCircle(WIDTH/2,HEIGHT/2,25,1); // x,y,radius,white fill. + lcd1.drawCircle(WIDTH/2,HEIGHT/2,25,1); /** x,y,radius,white fill.*/ wait(0.030); buzzer.beep(900,0.2); - lcd1.drawCircle(WIDTH/2,HEIGHT/2,30,1); // x,y,radius,transparent with outline. + lcd1.drawCircle(WIDTH/2,HEIGHT/2,30,1); /** x,y,radius,transparent with outline.*/ wait(0.020); buzzer.beep(1000,0.2); lcd1.drawCircle(WIDTH/2,HEIGHT/2,35,2); wait(0.030); buzzer.beep(1200,0.2); - lcd1.drawCircle(WIDTH/2,HEIGHT/2,40,1); // x,y,radius,white fill. + lcd1.drawCircle(WIDTH/2,HEIGHT/2,40,1); /** x,y,radius,white fill.*/ wait(0.020); buzzer.beep(1300,0.2); - lcd1.drawCircle(WIDTH/2,HEIGHT/2,45,0); // x,y,radius,transparent with outline. + lcd1.drawCircle(WIDTH/2,HEIGHT/2,45,0); /** x,y,radius,transparent with outline.*/ wait(0.030); buzzer.beep(1400,0.2); lcd1.drawCircle(WIDTH/2,HEIGHT/2,50,2); wait(0.020); buzzer.beep(1500,0.2); - lcd1.refresh(); // need to refresh screen after drawing buzzer. + lcd1.refresh(); /** need to refresh screen after drawing buzzer.*/ lcd1.clear(); }