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:
1d64184
)
remove unused LED to make code smaller
author
daniel watson
<ozzloy@gmail.com>
Sun, 3 Nov 2013 17:11:00 +0000
(09:11 -0800)
committer
daniel watson
<ozzloy@gmail.com>
Sun, 3 Nov 2013 17:11:18 +0000
(09:11 -0800)
phase2/phase2.ino
patch
|
blob
|
blame
|
history
diff --git
a/phase2/phase2.ino
b/phase2/phase2.ino
index 687f2e7ce94548680af2ddb9f65a297d38ece864..d88cfa5cc73a94c01cfc467552adfe5937568801 100644
(file)
--- a/
phase2/phase2.ino
+++ b/
phase2/phase2.ino
@@
-19,9
+19,6
@@
n
This example code is in the public domain.
*/
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;
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.
Serial.begin(9600);
// initialize the digital pin as an output.
- pinMode(led, OUTPUT);
pinMode(motor1_enable, OUTPUT);
pinMode(motor1a, OUTPUT);
pinMode(motor1b, 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);
pinMode(right_trigger, OUTPUT);
pinMode(right_echo, INPUT);
- digitalWrite(led, HIGH);
digitalWrite(motor1_enable, LOW);
digitalWrite(motor1a, LOW);
digitalWrite(motor1b, LOW);
digitalWrite(motor1_enable, LOW);
digitalWrite(motor1a, LOW);
digitalWrite(motor1b, LOW);