RCKit
Public Member Functions | List of all members
AccelStepperPositionSetter Class Reference

Setter class that outputs its value to set the position of an AccelStepper. More...

#include <AccelStepperPositionSetter.h>

Inheritance diagram for AccelStepperPositionSetter:
Inheritance graph
[legend]
Collaboration diagram for AccelStepperPositionSetter:
Collaboration graph
[legend]

Public Member Functions

 AccelStepperPositionSetter (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
 

Detailed Description

Setter class that outputs its value to set the position of an AccelStepper.

Requires the AccelStepper library seehttp://www.airspayce.com/mikem/arduino/AccelStepper/

Constructor & Destructor Documentation

◆ AccelStepperPositionSetter()

AccelStepperPositionSetter::AccelStepperPositionSetter ( AccelStepper *  stepper)
Parameters
[in]stepperThe target AccelStepper instance. It is the callers job to configure the AccelStepper
Author
Mike McCauley (mikem.nosp@m.@air.nosp@m.spayc.nosp@m.e.co.nosp@m.m)

Member Function Documentation

◆ input()

void AccelStepperPositionSetter::input ( int  value)
virtual

Input the value to be used to set the stepper position.

Parameters
[in]valueThe input value to be used to set the position of the stepper.

Reimplemented from Setter.


The documentation for this class was generated from the following files: