aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--car/car.ino6
1 files changed, 3 insertions, 3 deletions
diff --git a/car/car.ino b/car/car.ino
index 8405dde..b4f734e 100644
--- a/car/car.ino
+++ b/car/car.ino
@@ -11,7 +11,7 @@
#include "elegoo.pb.h"
PacketSerial serial;
-Servo head;
+Servo servo;
IRrecv irrecv(IR);
pb_istream_t istream;
@@ -51,7 +51,7 @@ int distance() {
}
void look(int deg) {
- head.write(90 + deg);
+ servo.write(90 + deg);
}
#define lookahead() do look( 0); while (0)
@@ -129,5 +129,5 @@ void setup() {
pinMode(IR, INPUT);
irrecv.enableIRIn();
- head.attach(SRV);
+ servo.attach(SRV);
}