X-Git-Url: http://challenge-bot.com/repos/?p=challenge-bot;a=blobdiff_plain;f=build-stages%2Fi_chooser%2Fbot_map.h;fp=build-stages%2Fi_chooser%2Fbot_map.h;h=8cf4ebb69b6948facaa320c2250e490374805972;hp=0000000000000000000000000000000000000000;hb=73ad88453aa7e7f04596f2a3a3f8642cb9cf010d;hpb=2d765ee71003333139f1cf1f5cb603126993dfdc diff --git a/build-stages/i_chooser/bot_map.h b/build-stages/i_chooser/bot_map.h new file mode 100644 index 0000000..8cf4ebb --- /dev/null +++ b/build-stages/i_chooser/bot_map.h @@ -0,0 +1,63 @@ +// license info at bottom of file +// tl;dr AGPLv3+ + +/* + define which pins are connected to which components +*/ + +////////////////////// +// button +////////////////////// +// purple wire +const int button_pin = 2; + +////////////////////// +// right motor +////////////////////// +// blue wire +const int right_motor_forward_pin = 3; +// orange wire +const int right_motor_backward_pin = 4; +// white wire +const int right_motor_speed_pin = 5; + +////////////////////// +// right sonar sensor +////////////////////// +// yellow wire +const int right_echo_pin = 6; +// blue wire +const int right_trigger_pin = 7; + +////////////////////// +// left motor +////////////////////// +// blue wire +const int left_motor_forward_pin = 8; +// orange wire +const int left_motor_backward_pin = 9; +// white wire +const int left_motor_speed_pin = 10; + +////////////////////// +// left sonar sensor +////////////////////// +// yellow wire +const int left_echo_pin = 11; +// blue wire +const int left_trigger_pin = 12; + +/* + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + */