Game for 4180 Lab4
Dependencies: 4DGL-uLCD-SE 4180_lab4_tank_war_game Game_Synchronizer MMA8452 SDFileSystem mbed-rtos mbed wave_player
Dependents: 4180_lab4_tank_war_game
Diff: globals.h
- Revision:
- 0:ffed9a3bc797
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/globals.h Mon Mar 13 21:23:17 2017 +0000 @@ -0,0 +1,25 @@ +#ifndef GLOBAL_H__ +#define GLOBAL_H__ + +#define GND_COLOR 0x66CD00 +#define TANK_RED 0xCD0000 +#define TANK_BLUE 0x000080 +#define PURPLE 0xcc00cc +#define ORANGE 0xff9933 +#define AQUA 0x00ffff + +#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 + + + +#endif //GLOBAL_H__ \ No newline at end of file