#include <Servo.h>
int servoPin = 7;
Servo servo;
void setup() {
// put your setup code here, to run once:
servo.attach(servoPin);
}
void loop() {
// put your main code here, to run repeatedly:
servo.write(90); //quay đến góc 90 độ
}
#include <Servo.h>
int servoPin = 7;
Servo servo;
void setup() {
// put your setup code here, to run once:
servo.attach(servoPin);
}
void loop() {
// put your main code here, to run repeatedly:
servo.write(90); //quay đến góc 90 độ
}