remove unused LED to make code smaller
authordaniel watson <ozzloy@gmail.com>
Sun, 3 Nov 2013 17:11:00 +0000 (09:11 -0800)
committerdaniel watson <ozzloy@gmail.com>
Sun, 3 Nov 2013 17:11:18 +0000 (09:11 -0800)
phase2/phase2.ino

index 687f2e7ce94548680af2ddb9f65a297d38ece864..d88cfa5cc73a94c01cfc467552adfe5937568801 100644 (file)
@@ -19,9 +19,6 @@ n
   This example code is in the public domain.
  */
 
-// Pin 13 has an LED connected on most Arduino boards.
-// give it a name:
-int led = 13;
 int motor1_enable = 10;
 int motor1a = 9;
 int motor1b = 8;
@@ -40,7 +37,6 @@ void setup() {
   Serial.begin(9600);
 
   // initialize the digital pin as an output.
-  pinMode(led, OUTPUT);
   pinMode(motor1_enable, OUTPUT);
   pinMode(motor1a, OUTPUT);
   pinMode(motor1b, OUTPUT);
@@ -54,7 +50,6 @@ void setup() {
   pinMode(right_trigger, OUTPUT);
   pinMode(right_echo, INPUT);
 
-  digitalWrite(led, HIGH);
   digitalWrite(motor1_enable, LOW);
   digitalWrite(motor1a, LOW);
   digitalWrite(motor1b, LOW);