IntroRoboticsLab2/motion/motion.ino

22 lines
251 B
C++

#include <MeMCore.h>
MeDCMotor _leftMoto(9);
MeDCMotor _rightMoto(10);
void setup()
{
_leftMotor.run(0);
_rightMotor.run(0);
}
void loop()
{
_leftMotor.run(0);
_rightMotor.run(0);
delay(50);
_leftMotor.stop();
_rightMotor.stop();
}