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:
- 2:66a4e5d7a7cd
- Parent:
- 1:9835d6304284
- Child:
- 3:f9cd1a38d5c6
--- 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