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