Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobolinkAkademi/bca36a2f571a921d7042a776ca4aef7c to your computer and use it in GitHub Desktop.
Save RobolinkAkademi/bca36a2f571a921d7042a776ca4aef7c to your computer and use it in GitHub Desktop.
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