#include <Servo.h>
Servo myServo;
void setup() {
// put your setup code here, to run once:
myServo.attach(9);
}
void loop() {
// put your main code here, to run repeatedly:
int number = random(0, 179);
myServo.write(number);
delay(1000);
}
Servo myServo;
void setup() {
// put your setup code here, to run once:
myServo.attach(9);
}
void loop() {
// put your main code here, to run repeatedly:
int number = random(0, 179);
myServo.write(number);
delay(1000);
}
No comments:
Post a Comment