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:
- 16:da0808d55de0
- Parent:
- 14:122eaa3b7a50
diff -r 81a3aaf52647 -r da0808d55de0 main.cpp
--- a/main.cpp Wed Apr 24 21:17:22 2019 +0000
+++ b/main.cpp Sat Apr 27 11:45:11 2019 +0000
@@ -14,32 +14,39 @@
#include "Ball.h"
#include "Bat.h"
#include "Cricket.h"
+#include "Menus.h"
N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
Gamepad pad;
Cricket cricket;
+Menus menu;
+Bat bat;
void init();
-//void welcome();
+void welcome();
void draw();
void ball_test();
int main(){
int fps=10;
init();
+ //bat.first_menu(lcd);
+ // welcome();
// welcome();
draw();
//float f;
//int status=0;
+ ///*
while(1){
//Direction dir=pad.get_direction();
cricket.game(lcd,pad);
draw();
wait(1.0f/fps);
}
+ //*/
/*
while(1){
ball.reset();
@@ -58,6 +65,7 @@
void init(){
lcd.init();
pad.init();
+ menu.init();
//ball1.init(2,4);
cricket.init();
//bat1.init();