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
/
h_stay_on_table
/
h_stay_on_table.ino
diff --git
a/build-stages/h_stay_on_table/h_stay_on_table.ino
b/build-stages/h_stay_on_table/h_stay_on_table.ino
index 26ecf2c40a6f072dd6a459cad7a92626890105ed..e2838f5536af086fecbe2dea168cc0b68983c4e2 100644
(file)
--- a/
build-stages/h_stay_on_table/h_stay_on_table.ino
+++ b/
build-stages/h_stay_on_table/h_stay_on_table.ino
@@
-14,18
+14,28
@@
*/
// 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;
+// yellow wire
int right_echo_pin = 6;
int right_echo_pin = 6;
+// blue wire
int right_trigger_pin = 7;
int right_trigger_pin = 7;
+// 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;
int left_motor_speed_pin = 10;
+// yellow wire
int left_echo_pin = 11;
int left_echo_pin = 11;
+// blue wire
int left_trigger_pin = 12;
void on(int pin){
int left_trigger_pin = 12;
void on(int pin){