#include <Servo.h>
Servo s;
int x;
void setup() {
s.attach(9);
}
void loop() {
x = analogRead(A0);
x = map(x, 0, 1023, 0, 180);
s.write(x);
delay(15);
}#include <Servo.h>
Servo s;
int x;
void setup() {
s.attach(9);
}
void loop() {
x = analogRead(A0);
x = map(x, 0, 1023, 0, 180);
s.write(x);
delay(15);
}