![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Shell code for the Tanks game
Dependencies: 4DGL-uLCD-SE EthernetInterface Game_Synchronizer MMA8452 SDFileSystem mbed-rtos mbed wave_player
Diff: globals/globals.h
- Revision:
- 18:18dfc9fb33b5
- Parent:
- 14:36c306e26317
diff -r 7bc7127782e4 -r 18dfc9fb33b5 globals/globals.h --- a/globals/globals.h Wed Oct 28 04:30:22 2015 +0000 +++ b/globals/globals.h Wed Oct 28 06:36:24 2015 +0000 @@ -5,6 +5,19 @@ #define GND_COLOR 0x66CD00 #define TANK_RED 0xCD0000 #define TANK_BLUE 0x000080 + +#define U_BUTTON 0 +#define R_BUTTON 1 +#define D_BUTTON 2 +#define L_BUTTON 3 + +#define TURN_P1 0 +#define TURN_P2 1 + + + +#define ACC_THRESHOLD 0.25 + #define PI 3.1415926535797 int CONVERT_24_TO_16_BPP(int col_24);