ELEC2645 (2018/19) / Mbed 2 deprecated el17aio

Dependencies:   mbed

Revision:
2:66a4e5d7a7cd
Parent:
1:9835d6304284
Child:
3:f9cd1a38d5c6
diff -r 9835d6304284 -r 66a4e5d7a7cd main.cpp
--- a/main.cpp	Wed Feb 27 05:40:31 2019 +0000
+++ b/main.cpp	Wed Feb 27 12:07:03 2019 +0000
@@ -8,24 +8,13 @@
 Date: 20/02/2019
 */
 
-DigitalIn a_button(PTB9);
-DigitalIn b_button(PTD0);
-DigitalIn x_button(PTC17);
-DigitalIn y_button(PTC12);
-DigitalIn l_button(PTB18);
-DigitalIn r_button(PTB3);
-DigitalIn back_button(PTB19);
-DigitalIn start_button(PTC5);
+///////// pre-processor directives ////////
+#include "mbed.h"
+#include "Gamepad.h"
+#include "N5110.h"
+#include "PongEngine.h"
 
-N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
-BusOut leds;
-
-AnalogIn pot;
+#ifdef WITH_TESTING
+# include "tests.h"
+#endif
 
-Tone dac;
-ShiftReg shift;
-
-// function prototypes
-init();
-print_menu();
-welcome();
\ No newline at end of file