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