1 | #include "Arduino.h" |
2 |
|
3 | #ifndef __ARD1_H__ |
4 | #define __ARD1_H__ 1 |
5 |
|
6 | // Pins |
7 |
|
8 | // 0 and 1 are hardware RX and TX |
9 | #define PIN_RESET 2 |
10 |
|
11 | #define ROBOCLAW_LOGIC 3 |
12 |
|
13 | #define ROBOCLAW_RX 4 |
14 | #define ROBOCLAW_TX 5 |
15 |
|
16 | #define PIN_MOTOR_BRAKES 6 |
17 | #define PIN_LIGHTS 7 |
18 |
|
19 | #define PIN_CH_1 8 |
20 | #define PIN_CH_2 9 |
21 | #define PIN_CH_3 10 |
22 | #define PIN_CH_4 11 |
23 | #define PIN_CH_5 12 |
24 | #define PIN_CH_6 13 |
25 |
|
26 | #define PIN_RELAY_1 A0 |
27 | #define PIN_RELAY_2 A1 |
28 | #define PIN_RELAY_3 A2 |
29 | #define PIN_RELAY_4 A3 |
30 | #define PIN_RELAY_5 A4 |
31 | #define PIN_RELAY_6 A5 |
32 |
|
33 | // Other settings |
34 |
|
35 | #define RIGHT_JOYSTICK_SENSITIVITY 4 // 1-5 |
36 | #define LEFT_JOYSTICK_SENSITIVITY 1 |
37 |
|
38 | #define RADIO_TIMEOUT 1000 |
39 |
|
40 | #define BAUD_RATE 9600 |
41 | #define ROBOCLAW_BAUD 38400 |
42 |
|
43 | #endif |
44 |
|