舵机

舵机

#include<Servo.h>
Servo myServo;
int djPin=12;
void setup() {
  // put your setup code here, to run once:
  myServo.attach(djPin);
}

void loop() {
  // put your main code here, to run repeatedly:
  myServo.write(115);
}
posted @ 2022-09-25 11:24  new-code  阅读(65)  评论(0)    收藏  举报