Friday, December 6, 2024

2 дугуй удирдах 360 servo

 #include <Servo.h>

Servo myservo;  // create servo object to control a servo
Servo myservo1;
void setup()
{
Serial.begin(9600);
  // attaches the servo on pin 10 to the servo object
  myservo.attach(10);
  myservo1.attach(9);

}

void loop()
{
  myservo.write(180);
  myservo1.write(0);
}

No comments:

Post a Comment