define wiring in separate file
[challenge-bot] / build-stages / h_stay_on_table / bot_map.h
1 // license info at bottom of file
2 // tl;dr AGPLv3+
3
4 /*
5 define which pins are connected to which components
6 */
7
8 //////////////////////
9 // right motor
10 //////////////////////
11 // blue wire
12 int right_motor_forward_pin = 3;
13 // orange wire
14 int right_motor_backward_pin = 4;
15 // white wire
16 int right_motor_speed_pin = 5;
17
18 //////////////////////
19 // right sonar sensor
20 //////////////////////
21 // yellow wire
22 int right_echo_pin = 6;
23 // blue wire
24 int right_trigger_pin = 7;
25
26 //////////////////////
27 // left motor
28 //////////////////////
29 // blue wire
30 int left_motor_forward_pin = 8;
31 // orange wire
32 int left_motor_backward_pin = 9;
33 // white wire
34 int left_motor_speed_pin = 10;
35
36 //////////////////////
37 // left sonar sensor
38 //////////////////////
39 // yellow wire
40 int left_echo_pin = 11;
41 // blue wire
42 int left_trigger_pin = 12;
43
44 /*
45 This program is free software: you can redistribute it and/or modify
46 it under the terms of the GNU Affero General Public License as
47 published by the Free Software Foundation, either version 3 of the
48 License, or (at your option) any later version.
49
50 This program is distributed in the hope that it will be useful,
51 but WITHOUT ANY WARRANTY; without even the implied warranty of
52 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
53 GNU Affero General Public License for more details.
54
55 You should have received a copy of the GNU Affero General Public License
56 along with this program. If not, see <http://www.gnu.org/licenses/>.
57 */