马达示例程序

#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);
}
posted @ 2022-12-17 08:35  new-code  阅读(54)  评论(0)    收藏  举报