RCKit
|
Setter class that outputs its value to set the speed of an AccelStepper. More...
#include <AccelStepperSpeedSetter.h>
Public Member Functions | |
AccelStepperSpeedSetter (AccelStepper *stepper) | |
virtual void | input (int value) |
Public Member Functions inherited from Setter | |
Setter () | |
Constructor. More... | |
Setter (Setter *target) | |
Constructor with setting the target. | |
virtual void | setTarget (Setter *target) |
virtual void | failsafe () |
void | setFailsafeValue (int failsafeValue) |
Sets the failsafeValue. | |
int | failsafeValue () |
Additional Inherited Members | |
Protected Attributes inherited from Setter | |
Setter * | _target |
This is the instance of Setter that will be given the transfotmed output value. | |
int | _failsafeValue |
Setter class that outputs its value to set the speed of an AccelStepper.
Requires the AccelStepper library seehttp://www.airspayce.com/mikem/arduino/AccelStepper/
AccelStepperSpeedSetter::AccelStepperSpeedSetter | ( | AccelStepper * | stepper | ) |
[in] | stepper | The target AccelStepper instance. It is the callers job to configure the AccelStepper |
|
virtual |
Input the value to be used to set the stepper speed.
[in] | value | The inpout value to be used to set the speed of the stepper in steps per second. |
Reimplemented from Setter.