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_PLOW_LIFT_UP A0 |
27 | #define PIN_PLOW_LIFT_DOWN A1 |
28 | #define PIN_PLOW_TILT_LEFT A2 |
29 | #define PIN_PLOW_TILT_RIGHT A3 |
30 |
|
31 | // Other settings |
32 |
|
33 | #define CONTROLLER_SENSITIVITY 4 // 1-5 |
34 | |
35 | #define RADIO_TIMEOUT 1000 |
36 |
|
37 | #define BAUD_RATE 9600 |
38 | #define ROBOCLAW_BAUD 38400 |
39 |
|
40 | #endif |
41 |
|