X-Git-Url: http://challenge-bot.com/repos/?p=challenge-bot;a=blobdiff_plain;f=build-stages%2Fd_right_motor%2Fd_right_motor.ino;fp=build-stages%2Fd_right_motor%2Fd_right_motor.ino;h=0000000000000000000000000000000000000000;hp=a27b9848798cd4f04093ba85430e740d6ab41500;hb=35ffc3435298c78927cd70d765d6291f16325e5d;hpb=4f98acb2deaa2b3b89ee1cc212ca3109ba4ad973 diff --git a/build-stages/d_right_motor/d_right_motor.ino b/build-stages/d_right_motor/d_right_motor.ino deleted file mode 100644 index a27b984..0000000 --- a/build-stages/d_right_motor/d_right_motor.ino +++ /dev/null @@ -1,31 +0,0 @@ -/* - 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 . - */ - -// define which pins are connected to which components -int right_motor_speed_pin = 3; -int right_motor_forward_pin = 4; -int right_motor_backward_pin = 5; - -void setup(){ - // the arduino will change the voltage on these pins - // therefore, these pins are OUTPUT pins - pinMode(right_motor_speed_pin, OUTPUT); - pinMode(right_motor_forward_pin, OUTPUT); - pinMode(right_motor_backward_pin, OUTPUT);} - -void loop(){ - digitalWrite(right_motor_backward_pin, LOW); - digitalWrite(right_motor_forward_pin, HIGH); - analogWrite(right_motor_speed_pin, 255);}