#ifndef COMMANDS #define COMMANDS #define QUERY_STATUS 0x3F #define QUERY_SCORE 0xC3 // Status messages #define COMM_WAITING 0x00 #define COMM_MATCH_UNDERWAY 0x01 #define COMM_RECESS 0x03 #define COMM_SUDDEN_DEATH 0x04 #define COMM_END_MATCH 0x05 // Careful... need to mask message for these two #define COMM_UNHORSED_RED BIT3HI #define COMM_RELOAD_RED_OK BIT4HI #define COMM_UNHORSED_DARK BIT7HI #define COMM_RELOAD_DARK_OK BIT6HI #define COMM_MASK_LSB (BIT0HI | BIT1HI | BIT2HI) // Score messages: just read the 3rd and 4th bytes #endif