projects
/
challenge-bot
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simplify wiring, keep right and left separated
[challenge-bot]
/
motor
/
motor.ino
diff --git
a/motor/motor.ino
b/motor/motor.ino
index 7bd92648ae3fdb46678986f8ce5d5bfd449a8fa2..af9ce4b8147b804ba0a100e6f01a1c9baf3d2ab6 100644
(file)
--- a/
motor/motor.ino
+++ b/
motor/motor.ino
@@
-14,13
+14,13
@@
*/
// define which pins are connected to which components
*/
// define which pins are connected to which components
-int
lef
t_motor_speed_pin = 3;
-int
lef
t_motor_forward_pin = 4;
-int
lef
t_motor_backward_pin = 5;
+int
righ
t_motor_speed_pin = 3;
+int
righ
t_motor_forward_pin = 4;
+int
righ
t_motor_backward_pin = 5;
-int
righ
t_motor_speed_pin = 8;
-int
righ
t_motor_forward_pin = 9;
-int
righ
t_motor_backward_pin = 10;
+int
lef
t_motor_speed_pin = 8;
+int
lef
t_motor_forward_pin = 9;
+int
lef
t_motor_backward_pin = 10;
void setup(){
// the arduino will change the voltage on these pins
void setup(){
// the arduino will change the voltage on these pins