Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Arduino projeleri
#include <Servo.h>
Servo sg90;
int pos = 0;
void setup()
{
sg90.attach(13);
}
void loop()
{
for (pos = 0; pos <= 180; pos += 1)
{
sg90.write(pos);
delay(15);
}
for (pos = 180; pos >= 0; pos -= 1)
{
sg90.write(pos);
delay(15);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.