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 ELEC2645_Project_el18to
Diff: main.cpp
- Revision:
- 3:793a6186b557
- Parent:
- 2:4b2c00ba7f7c
- Child:
- 4:536a62daa959
--- a/main.cpp Fri Apr 03 13:50:54 2020 +0000
+++ b/main.cpp Wed Apr 08 11:35:58 2020 +0000
@@ -14,15 +14,27 @@
#include "mbed.h"
#include "Gamepad.h"
#include "N5110.h"
+#include "CCar.h"
+#include "GameEngine.h"
-// objects
Gamepad pad;
N5110 lcd;
+CCar user;
+GameEngine game;
-int main()
-{
-
-}
-
+int main(){
+ pad.init();
+ lcd.init();
+ pad.leds_on();
+ int i = 1;
+ while(1){
+ lcd.clear();
+ game.run(lcd, pad, user);
+ //printf("i = %i\n",i);
+ i++;
+ lcd.refresh();
+ wait_ms(10);
+ }
+}
\ No newline at end of file