The present code implements a single player squash game, using joystick to move paddle right or left. And checks the current temperature inside the device.

Dependencies:   2645_I2C_TMP102 2645_Physics_Engine_Example Paddle mbed

Revision:
4:1d38d6b09e84
Parent:
2:c1b442f26087
--- a/main.cpp	Mon May 09 09:23:41 2016 +0000
+++ b/main.cpp	Wed May 11 14:45:00 2016 +0000
@@ -1,24 +1,14 @@
 #include "mbed.h"
 #include "N5110.h"
-#include "game.h"
+#include "temp.h"
 #include "main.h"
 
 
 #define BALLRADIUS 2
 
 
-//          VCC,    SCE,  RST,    D/C,   MOSI,  SCLK,   LED
-N5110 lcd (PTE26 , PTA0 , PTC4 , PTD0 , PTD2 , PTD1 , PTC3);
-// Can also power (VCC) directly from VOUT (3.3 V) -
-// Can give better performance due to current limitation from GPIO pin
 
-InterruptIn interrupt_button(PTB18); // interrupting the sleep mode.
-PwmOut buzzer(PTA2); // buzzer connection to PwmOut.
 
-// connections for joystick
-DigitalIn button(PTB10);
-AnalogIn xPot(PTB2);
-AnalogIn yPot(PTB3);
 
 void delete_file(char filename[]);