projects
/
challenge-bot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b567d5d
)
make untethered code match wiring diagram
author
daniel watson
<ozzloy@gmail.com>
Sat, 5 Dec 2015 04:09:34 +0000
(20:09 -0800)
committer
daniel watson
<ozzloy@gmail.com>
Sat, 5 Dec 2015 04:09:34 +0000
(20:09 -0800)
build-stages/f_untethered/f_untethered.ino
patch
|
blob
|
blame
|
history
diff --git
a/build-stages/f_untethered/f_untethered.ino
b/build-stages/f_untethered/f_untethered.ino
index b42c07ca73d3ee0b01f4ac5a5e7ded87a1a68234..136c4ae95b1d5b519a2c0fe800d52274d3d1892a 100644
(file)
--- a/
build-stages/f_untethered/f_untethered.ino
+++ b/
build-stages/f_untethered/f_untethered.ino
@@
-14,13
+14,19
@@
*/
// define which pins are connected to which components
*/
// 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;
-
-int left_motor_speed_pin = 8;
-int left_motor_forward_pin = 9;
-int left_motor_backward_pin = 10;
+// blue wire
+int right_motor_forward_pin = 3;
+// orange wire
+int right_motor_backward_pin = 4;
+// white wire
+int right_motor_speed_pin = 5;
+
+// blue wire
+int left_motor_forward_pin = 8;
+// orange wire
+int left_motor_backward_pin = 9;
+// white wire
+int left_motor_speed_pin = 10;
void on(int pin){
digitalWrite(pin, HIGH);}
void on(int pin){
digitalWrite(pin, HIGH);}