You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
459 B
22 lines
459 B
// 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.h> |
|
|
|
AccelStepper stepper; // Defaults to 4 pins on 2, 3, 4, 5 |
|
|
|
void setup() |
|
{ |
|
stepper.setSpeed(50); |
|
} |
|
|
|
void loop() |
|
{ |
|
stepper.runSpeed(); |
|
}
|
|
|