|
Post by 邱老师 on Jan 2, 2021 16:33:07 GMT
由于舵机需要更大的电流,电源线从UNO板上直接拉到开发板的VCC和GND, 视频链接链接:https://pan.baidu.com/s/16D50Ge1cMuYrpepGGwFg2Q 提取码:lzxs #include <Servo.h>
#define PIN_SERVO 10
int i=0;
Servo myservo;
void setup()
{
myservo.attach(PIN_SERVO);
}
void loop()
{
for(i=0;i<160;i++)
{
myservo.write(i);
delay(30);
}
for(i=160;i>0;i--)
{
myservo.write(i);
delay(30);
}
delay(1000);
} #include <Servo.h> #define PIN_SERVO 10 Servo myservo; void setup() { myservo.attach(PIN_SERVO); } void loop() { myservo.write(0); delay(1000); myservo.write(80); delay(1000); myservo.write(160); delay(1000); myservo.write(80); delay(1000); myservo.write(0); delay(1000); }
|
|
胡志松
New Member
Posts: 26
|
Post by 胡志松 on Jan 9, 2021 8:40:21 GMT
完成
|
|
马琰
New Member
Posts: 12
|
Post by 马琰 on Jan 9, 2021 8:45:29 GMT
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
|
|
潘锦轩
New Member
Posts: 14
|
Post by 潘锦轩 on Jan 10, 2021 6:52:14 GMT
完成
|
|
|
Post by 王骞 on Jan 10, 2021 6:53:21 GMT
王骞完成
|
|
翁锐喆
New Member
Posts: 13
|
Post by 翁锐喆 on Jan 10, 2021 7:05:51 GMT
完成·
|
|
卢占卡
New Member
听邱老师讲话是快速入眠的最好方式
Posts: 35
|
Post by 卢占卡 on Jan 10, 2021 7:57:08 GMT
刘亭默&卢占卡打卡
|
|
周佳祺
New Member
Posts: 32
|
Post by 周佳祺 on Jan 17, 2021 8:13:26 GMT
完成,上面那位有点屎坑里跳高——过分(粪)了啊
|
|
林明轩
Junior Member
Posts: 87
|
Post by 林明轩 on Feb 7, 2021 12:32:44 GMT
完成
|
|
徐瑶锦
New Member
Posts: 20
|
Post by 徐瑶锦 on Feb 10, 2021 4:20:07 GMT
完成
|
|