#define PRE_SCL 0x72 // Pre-scale B128 A4
#define PWM_SCA 0x01 // Scale SA by 1*2=2
#define PWM_SCB 0x01 // Scale SB by 1*1=2
#define PWM_PRA 150 // Pd SA for 100% DC
#define PWM_PRB 234 // Pd SB for 100% DC
#define BIT034HI 0x19 // Map port U0,U3,U4
#define GAME 0
#define WAIT 1
#define SM_TMR 2
#define BEACON 3
#define HOLD 4
#define FOLLOW 5
#define LO_SPD 37
#define HI_SPD 42
#define ACCEPT_BEACON 5
#define REJECT_BEACON 1
#define ACCEPT_GOAL 8
#define ABOUT_40 47
#define ABOUT_60 53
#define ABOUT_80 78
#define ABOUT_100 100
#define ACCEPT_TAPE 5
#define BLACK 400
#define GREEN 150
#define RED 100
#define NO_EVENT 0
#define SEE_FLASH 1
#define SEE_DISPENSER 2
#define SEE_GOAL 3
#define LOST_BEACON 4
#define TAPE_CHANGE 5
#define BUMP_FT 6
#define LOST_FT 7
#define BUMP_FB 8
#define LOST_FB 9
#define BUMP_BR 10
#define LOST_BR 11
#define BUMP_BL 12
#define LOST_BL 13
#define AT_DISPENSER 14
#define AT_1ST_TAPE 15
#define FOLLOW_TIME 750
#define SM_TMR_XPD 16
#define RUN 0
#define CLEAR 1
#define CLEARCW 1
#define CLEARCCW 2