17 lines
198 B
Arduino
Raw Permalink Normal View History

2012-11-03 14:04:45 +01:00
#include <Motor.h>
void setup()
{
2013-01-23 16:55:40 +01:00
MotorA.init();
MotorA.torque(255);
2012-11-03 14:04:45 +01:00
}
void loop()
{
MotorA.direction(FORWARD);
2013-01-23 16:55:40 +01:00
delay(1000);
2012-11-03 14:04:45 +01:00
MotorA.direction(BACKWARD);
2013-01-23 16:55:40 +01:00
delay(1000);
2012-11-03 14:04:45 +01:00
}