Class for communicating with a stepper driver device.
function StepperDevice(master:Master, deviceId:Number)This constructor creates a new object for communicating with a motor driver device.
master | contains a pointer to the master object, see Master. |
deviceId | is the unique device identifier which you can find on the board or using the Master.requestDeviceTable method of the Master. |
function requestSetSpeed(speed:Number)Change the speed
speed | specifies the speed, it should be between -127 to 127, negative means turning backwards. |
function requestSetConfiguration(current:Number, autostop:Number, halfStep:Number, waveDrive:Number, fastDecay:Number)Set configuration
current | specificies the current in miliAmperes between 0 and 1500. |
autostop | 1--> the motor is automatically stopped when the limit switch is enabled |
waveDrive | 1--> wave drive enabled (noise reduction), 0--> wave drive disabled |
fastDecay | 1--> fast decay enabled, 0 --> normal decay |