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