
Kaif Kutchwala 201267448 ELEC2645 Project
Dependencies: mbed
Diff: main.cpp
- Revision:
- 21:d5b1160f349f
- Parent:
- 20:c697902b844f
- Child:
- 22:76bb0f52be8b
--- a/main.cpp Sun May 24 17:40:56 2020 +0000 +++ b/main.cpp Mon May 25 00:55:38 2020 +0000 @@ -11,6 +11,7 @@ #include "Ball.h" #include "Splash.h" #include "Game.h" +#include "test.h" #include "Instructions.h" #include "Sprites.h" @@ -44,9 +45,8 @@ pad.reset_buttons(); wait(0.2); } else if (pad.X_pressed()) { - while(!pad.B_pressed()) { - display_settings(); - } + while(!pad.B_pressed()) { display_settings();} + pad.reset_buttons(); } else if (pad.Y_pressed()) { lcd.turnOff(); pad.leds(0.0); @@ -54,6 +54,7 @@ } } void init() { + run_all_tests(); lcd.init(); lcd.setContrast(0.5); pad.init();