// ConstantSpeed.pde // -*- mode: C++ -*- // // Shows how to run AccelStepper in the simplest, // fixed speed mode with no accelerations /// \author Mike McCauley (mikem@open.com.au) // Copyright (C) 2009 Mike McCauley // $Id: HRFMessage.h,v 1.1 2009/08/15 05:32:58 mikem Exp mikem $ #include AccelStepper stepper; // Defaults to 4 pins on 2, 3, 4, 5 void setup() { stepper.setSpeed(50); } void loop() { stepper.runSpeed(); }