contains my game for the embedded systems project 2645
Dependencies: mbed FXOS8700CQQQ
Diff: main.cpp
- Revision:
- 30:c5060010a1e6
- Parent:
- 29:e660274d8222
- Child:
- 31:4d4a9d78cae5
diff -r e660274d8222 -r c5060010a1e6 main.cpp --- a/main.cpp Thu Apr 25 10:44:53 2019 +0000 +++ b/main.cpp Sat Apr 27 02:00:28 2019 +0000 @@ -12,7 +12,7 @@ #include "tests.h" // objects - +FXOS8700CQ devicee(I2C_SDA,I2C_SCL); //instantiating the Gamepad object Gamepad pad; @@ -28,6 +28,7 @@ // instantiating the tests object tests test; + // prototypes /** * @brief object initialization method @@ -52,6 +53,7 @@ lcd.setBrightness(0.4);//sets the default brightness lcd.setContrast(0.55);//set the default contrast lcd.normalMode(); + devicee.init(); } @@ -70,6 +72,7 @@ // test.test_loading_menu(lcd); // test.test_InstructionsMenu(pad,lcd); // test.test_Game_Loop(pad,lcd); + menus.welcomeMenu(pad,lcd); menus.loading_menu(lcd);