Catégories
Liens
Ceci est une ancienne révision du document !
#include <StepperMotor.h> StepperMotor motor1(8,9,10,11); StepperMotor motor2(4,5,6,7); void setup(){ Serial.begin(9600); motor1.setStepDuration(1); motor2.setStepDuration(1); } void loop(){ motor1.step(1000); motor2.step(1000); delay(2000); motor1.step(-1000); motor2.step(-1000); delay(2000);