redo wiring to allow for LEDs and button
authorozzloy <ozzloy+launchpad_net@gmail.com>
Tue, 14 May 2019 06:52:07 +0000 (23:52 -0700)
committerozzloy <ozzloy+launchpad_net@gmail.com>
Tue, 14 May 2019 06:52:07 +0000 (23:52 -0700)
Change-Id: I1dbf6d8403be9bb0d70206661e012e15392e55e5

build-stages/i_chooser/bot_map.h
build-stages/i_chooser/bot_with_leds_map.h
build-stages/i_chooser/i_chooser.ino

index 8cf4ebb69b6948facaa320c2250e490374805972..8d70aebc177eb1cf6e47fe746d13a3454f39be14 100644 (file)
@@ -9,7 +9,7 @@
 // button
 //////////////////////
 // purple wire
-const int button_pin = 2;
+const int button_pin = A0;
 
 //////////////////////
 // right motor
index ebb554c86cb131fb7635b84f77788910572f707f..f28cb83196e76533c5de5641a1bc86fa30195bbe 100644 (file)
@@ -1,6 +1,12 @@
 // license info at bottom of file
 // tl;dr AGPLv3+
 
+//////////////////////
+// button
+//////////////////////
+// purple wire
+const int button_pin = A0;
+
 // right side LED, white wire
 int right_led_pin = 3;
 
@@ -20,7 +26,7 @@ int right_trigger_pin = 7;
 // blue wire
 int left_motor_forward_pin = 8;
 // orange wire
-int left_motor_backward_pin = 13;
+int left_motor_backward_pin = A1;
 // white wire
 int left_motor_speed_pin = 10;
 
index 6eabcaf90f157a2ce79a7bceef243165b27ee5cb..93d05fff2983d81f15cd1ec10e73cde57ef65bde 100644 (file)
@@ -14,7 +14,7 @@
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "bot_map.h"
+#include "bot_with_leds_map.h"
 
 void on(int pin){
   digitalWrite(pin, HIGH);}