![](/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
misc/misc.h@20:6a58052b0140, 2015-10-29 (annotated)
- Committer:
- jford38
- Date:
- Thu Oct 29 02:21:11 2015 +0000
- Revision:
- 20:6a58052b0140
- Parent:
- globals/globals.h@18:18dfc9fb33b5
- Child:
- 22:3c68eea5a609
Updated to use separate functions to get button data and accelerometer data separately.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jford38 | 14:36c306e26317 | 1 | #ifndef GLOBAL_H__ |
jford38 | 14:36c306e26317 | 2 | #define GLOBAL_H__ |
jford38 | 14:36c306e26317 | 3 | |
jford38 | 14:36c306e26317 | 4 | #define SKY_COLOR 0x7EC0EE |
jford38 | 14:36c306e26317 | 5 | #define GND_COLOR 0x66CD00 |
jford38 | 14:36c306e26317 | 6 | #define TANK_RED 0xCD0000 |
jford38 | 14:36c306e26317 | 7 | #define TANK_BLUE 0x000080 |
jford38 | 18:18dfc9fb33b5 | 8 | |
jford38 | 18:18dfc9fb33b5 | 9 | #define U_BUTTON 0 |
jford38 | 18:18dfc9fb33b5 | 10 | #define R_BUTTON 1 |
jford38 | 18:18dfc9fb33b5 | 11 | #define D_BUTTON 2 |
jford38 | 18:18dfc9fb33b5 | 12 | #define L_BUTTON 3 |
jford38 | 18:18dfc9fb33b5 | 13 | |
jford38 | 18:18dfc9fb33b5 | 14 | #define TURN_P1 0 |
jford38 | 18:18dfc9fb33b5 | 15 | #define TURN_P2 1 |
jford38 | 18:18dfc9fb33b5 | 16 | |
jford38 | 18:18dfc9fb33b5 | 17 | |
jford38 | 18:18dfc9fb33b5 | 18 | |
jford38 | 18:18dfc9fb33b5 | 19 | #define ACC_THRESHOLD 0.25 |
jford38 | 18:18dfc9fb33b5 | 20 | |
jford38 | 14:36c306e26317 | 21 | #define PI 3.1415926535797 |
jford38 | 14:36c306e26317 | 22 | |
jford38 | 14:36c306e26317 | 23 | int CONVERT_24_TO_16_BPP(int col_24); |
jford38 | 14:36c306e26317 | 24 | |
jford38 | 14:36c306e26317 | 25 | #endif //GLOBAL_H__ |