马达示例程序
#include <RS_Motor.h>
RS_Motor motor_left;
RS_Motor motor_right;
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
motor_left.run(1,-40);
motor_left.run(2,-40);
}
作者:newcode 更多资源请关注纽扣编程微信公众号
从事机器人比赛、机器人等级考试、少儿scratch编程、信息学奥赛等研究学习