-
Notifications
You must be signed in to change notification settings - Fork 9
/
PESBoardPinMap.h
61 lines (47 loc) · 1.3 KB
/
PESBoardPinMap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef PES_BOARD_PIN_MAP_
#define PES_BOARD_PIN_MAP_
// PES-Board Pin Names
#define NEW_PES_BOARD_VERSION
#ifdef NEW_PES_BOARD_VERSION
#define USER_BUTTON PC_13
#define USER_LED PA_5
// Servos and Ultrasonic Sensor
#define PB_D0 PB_2
#define PB_D1 PC_8
#define PB_D2 PC_6
#define PB_D3 PB_12
// DC-Motors
#define PB_PWM_M1 PB_13
#define PB_PWM_M2 PA_9
#define PB_PWM_M3 PA_10
#define PB_ENC_A_M1 PA_6
#define PB_ENC_B_M1 PC_7
#define PB_ENC_A_M2 PB_6
#define PB_ENC_B_M2 PB_7
#define PB_ENC_A_M3 PA_0
#define PB_ENC_B_M3 PA_1
#define PB_ENABLE_DCMOTORS PB_15
// IMU
#define PB_IMU_SDA PC_9
#define PB_IMU_SCL PA_8
#else
#define USER_BUTTON PC_13
#define USER_LED PA_5
#define PB_D0 PC_9 // ???
#define PB_D1 PC_8 // ???
#define PB_D2 PC_6 // ???
#define PB_D3 PB_12 // ???
#define PB_PWM_M1 PA_8
#define PB_PWM_M2 PA_9
#define PB_PWM_M3 PA_13 // ???
#define PB_ENC_A_M1 PB_6
#define PB_ENC_B_M1 PB_7
#define PB_ENC_A_M2 PA_6
#define PB_ENC_A_M2 PC_7
#define PB_ENC_A_M3 PA_1 // ???
#define PB_ENC_B_M3 PA_0 // ???
#define PB_ENABLE_DCMOTORS PB_2 // PB_13 ???
#define PB_IMU_SDA // ???
#define PB_IMU_SCL // ???
#endif
#endif /* PES_BOARD_PIN_MAP_ */