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
Diff: main.cpp
- Revision:
- 2:e9ac69c17a75
- Parent:
- 1:ce0d477de314
- Child:
- 3:bd3465a70a5a
--- a/main.cpp Fri Apr 05 15:44:09 2019 +0000
+++ b/main.cpp Sat Apr 06 10:02:52 2019 +0000
@@ -19,11 +19,13 @@
void init();
void welcome();
+void field();
int main(){
int fps=8;
init();
welcome();
+ field();
wait(1.0f/fps);
}
void init(){
@@ -39,8 +41,8 @@
}
void welcome() {
- lcd.printString(" GAME ",0,1);
- lcd.printString(" SHAHID ZUBIN SAJID ",0,2);
+ lcd.printString(" CRICKET GAME ",0,1);
+ lcd.printString(" SHAHID SAJID",0,2);
lcd.printString(" el17szs ",0,3);
lcd.printString(" Press Start ",0,4);
lcd.refresh();
@@ -53,4 +55,10 @@
wait(0.1);
}
+}
+void field(){
+ lcd.clear();
+ lcd.drawCircle((WIDTH/2),HEIGHT/2,20,FILL_TRANSPARENT);
+ lcd.drawRect(37,11,12,25,FILL_TRANSPARENT);
+ lcd.refresh();
}
\ No newline at end of file