projects
/
challenge-bot
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
indicate wire colors in comments
[challenge-bot]
/
build-stages
/
e_both_motors
/
e_both_motors.ino
diff --git
a/build-stages/e_both_motors/e_both_motors.ino
b/build-stages/e_both_motors/e_both_motors.ino
index 1e55ac6a122207b81ca5922841ec16941fe4b7e9..136c4ae95b1d5b519a2c0fe800d52274d3d1892a 100644
(file)
--- a/
build-stages/e_both_motors/e_both_motors.ino
+++ b/
build-stages/e_both_motors/e_both_motors.ino
@@
-14,12
+14,18
@@
*/
// define which pins are connected to which components
*/
// define which pins are connected to which components
+// blue wire
int right_motor_forward_pin = 3;
int right_motor_forward_pin = 3;
+// orange wire
int right_motor_backward_pin = 4;
int right_motor_backward_pin = 4;
+// white wire
int right_motor_speed_pin = 5;
int right_motor_speed_pin = 5;
+// blue wire
int left_motor_forward_pin = 8;
int left_motor_forward_pin = 8;
+// orange wire
int left_motor_backward_pin = 9;
int left_motor_backward_pin = 9;
+// white wire
int left_motor_speed_pin = 10;
void on(int pin){
int left_motor_speed_pin = 10;
void on(int pin){