Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 0222cf4ea0
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (24 sloc) 0.453 kB
#include <Servo.h>
Servo servo;
int inByte = 0;
int proceeding = 0;
void setup() {
// pinMode(5, OUTPUT);
// analogWrite(5, 200);
servo.attach(3);
servo.write(0);
Serial.begin(9600);
}
void loop() {
if (Serial.available() > 0) {
inByte = Serial.read();
if (inByte == 'G' && !proceeding) {
proceeding = 1;
servo.write(165);
delay(500);
servo.write(0);
delay(500);
proceeding = 0;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.