I like motor spinning :D

This commit is contained in:
Raghav 2022-05-28 13:56:05 -04:00 committed by GitHub
parent 7e1c2ed46a
commit f41b2dc3e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,19 @@
#include <Servo.h>
Servo myservo;
void setup() {
// put your setup code here, to run once:
myservo.attach(9);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
for(int i=1500; i<2100; i+=100)
{
myservo.writeMicroseconds(i);
delay(3000);
Serial.println(i);
}
}