Test PS3 - Dribbler

Dependencies:   SerialArduino RCJESC

Committer:
piroro4560
Date:
Fri Jun 17 02:54:39 2022 +0000
Revision:
0:97e795fb633f
Test PS3 - Dribbler

Who changed what in which revision?

UserRevisionLine numberNew contents of line
piroro4560 0:97e795fb633f 1 #ifndef MAIN_H
piroro4560 0:97e795fb633f 2 #define MAIN_H
piroro4560 0:97e795fb633f 3
piroro4560 0:97e795fb633f 4 #include "mbed.h"
piroro4560 0:97e795fb633f 5
piroro4560 0:97e795fb633f 6 #define RobotNumberIsOne
piroro4560 0:97e795fb633f 7
piroro4560 0:97e795fb633f 8 #define PI 3.141592653//5897932
piroro4560 0:97e795fb633f 9
piroro4560 0:97e795fb633f 10 #define US1trig PC_8
piroro4560 0:97e795fb633f 11 #define US1echo PC_6
piroro4560 0:97e795fb633f 12 #define US2trig PC_5
piroro4560 0:97e795fb633f 13 #define US2echo PA_12
piroro4560 0:97e795fb633f 14 #define US3trig PA_11
piroro4560 0:97e795fb633f 15 #define US3echo PB_12
piroro4560 0:97e795fb633f 16 #define US4trig PB_2
piroro4560 0:97e795fb633f 17 #define US4echo PB_1
piroro4560 0:97e795fb633f 18 #define jyscl PA_8
piroro4560 0:97e795fb633f 19 #define jysda PB_4
piroro4560 0:97e795fb633f 20 #define IR PC_2
piroro4560 0:97e795fb633f 21
piroro4560 0:97e795fb633f 22 #ifdef RobotNumberIsOne
piroro4560 0:97e795fb633f 23 #define Pin_motor_0 PA_6
piroro4560 0:97e795fb633f 24 #define Pin_motor_1 PA_15
piroro4560 0:97e795fb633f 25 #define Pin_motor_2 PB_6
piroro4560 0:97e795fb633f 26 #define Pin_motor_3 PA_7
piroro4560 0:97e795fb633f 27 #else
piroro4560 0:97e795fb633f 28 #define Pin_motor_0 PA_15
piroro4560 0:97e795fb633f 29 #define Pin_motor_1 PA_7
piroro4560 0:97e795fb633f 30 #define Pin_motor_2 PB_6
piroro4560 0:97e795fb633f 31 #define Pin_motor_3 PA_6
piroro4560 0:97e795fb633f 32 #endif
piroro4560 0:97e795fb633f 33
piroro4560 0:97e795fb633f 34 #define Pin_Kicker PA_10
piroro4560 0:97e795fb633f 35 #define Pin_Dribbler PC_9
piroro4560 0:97e795fb633f 36
piroro4560 0:97e795fb633f 37 #define Pin_lcdscl PB_8
piroro4560 0:97e795fb633f 38 #define Pin_lcdsda PB_9
piroro4560 0:97e795fb633f 39
piroro4560 0:97e795fb633f 40 #define Pin_button PC_3
piroro4560 0:97e795fb633f 41 #define Pin_toggle_0 PA_9
piroro4560 0:97e795fb633f 42 #define Pin_toggle_1 PB_10
piroro4560 0:97e795fb633f 43 #define Pin_toggle_2 PB_5
piroro4560 0:97e795fb633f 44
piroro4560 0:97e795fb633f 45 #endif