#define NOISE_THRESHOLD 0x01000000

#define BLANK_LENGTH_THRESHOLD 1000

#define WAIT_TIME 2

#define SPEED_0 0x00011802
#define SPEED_1 0x00013002
#define SPEED_2 0x00013802
#define SPEED_3 0x00013A02
#define SPEED_4 0x00013A82
#define SPEED_5 0x00013A92
#define SPEED_6 0x00013AD2
#define SPEED_7 0x00013BD2

#define HEX_ON 0x00003F54
#define HEX_OFF 0x003F7171
#define HEX_SAFE 0x6D777179
#define HEX_UP 0x00003E73
#define HEX_DOWN 0x5E5C4F54
#define HEX_IDLE 0x305E3879
#define HEX_LAND 0x3877545E

void wait ( int seconds );
void check_KEYs(int * KEY1, int * KEY2, int * KEY3);
int speedGear(int * speed, char inc);
