AccelStepperI2C
v0.2.2
I2C wrapper (and a bit more) for the AccelStepper Arduino library
|
Classes | |
struct | diagnosticsReport |
Used to transmit diagnostic info with AccelStepperI2C::diagnostics(). More... | |
class | AccelStepperI2C |
An I2C wrapper class for the AccelStepper library. More... | |
Variables | |
const uint8_t | AccelStepperI2CmaxBuf = 20 |
const long | resError = 0 |
const uint8_t | moveToCmd = 10 |
const uint8_t | moveCmd = 11 |
const uint8_t | runCmd = 12 |
const uint8_t | runResult = 1 |
const uint8_t | runSpeedCmd = 13 |
const uint8_t | runSpeedResult = 1 |
const uint8_t | setMaxSpeedCmd = 14 |
const uint8_t | maxSpeedCmd = 15 |
const uint8_t | maxSpeedResult = 4 |
const uint8_t | setAccelerationCmd = 16 |
const uint8_t | setSpeedCmd = 17 |
const uint8_t | speedCmd = 18 |
const uint8_t | speedResult = 4 |
const uint8_t | distanceToGoCmd = 19 |
const uint8_t | distanceToGoResult = 4 |
const uint8_t | targetPositionCmd = 20 |
const uint8_t | targetPositionResult = 4 |
const uint8_t | currentPositionCmd = 21 |
const uint8_t | currentPositionResult = 4 |
const uint8_t | setCurrentPositionCmd = 22 |
const uint8_t | runToPositionCmd = 23 |
const uint8_t | runSpeedToPositionCmd = 24 |
const uint8_t | runSpeedToPositionResult = 1 |
const uint8_t | runToNewPositionCmd = 25 |
const uint8_t | stopCmd = 26 |
const uint8_t | disableOutputsCmd = 27 |
const uint8_t | enableOutputsCmd = 28 |
const uint8_t | setMinPulseWidthCmd = 29 |
const uint8_t | setEnablePinCmd = 30 |
const uint8_t | setPinsInverted1Cmd = 31 |
const uint8_t | setPinsInverted2Cmd = 32 |
const uint8_t | isRunningCmd = 33 |
const uint8_t | isRunningResult = 1 |
const uint8_t | attachCmd = 40 |
const uint8_t | attachResult = 1 |
const uint8_t | enableDiagnosticsCmd = 41 |
const uint8_t | diagnosticsCmd = 42 |
const uint8_t | diagnosticsResult = sizeof(diagnosticsReport) |
const uint8_t | enableInterruptsCmd = 43 |
const uint8_t | setStateCmd = 44 |
const uint8_t | getStateCmd = 45 |
const uint8_t | getStateResult = 1 |
const uint8_t | setEndstopPinCmd = 46 |
const uint8_t | enableEndstopsCmd = 47 |
const uint8_t | endstopsCmd = 48 |
const uint8_t | endstopsResult = 1 |
const uint8_t | state_stopped = 0 |
stepper state machine states More... | |
const uint8_t | state_run = 1 |
corresponds to AccelStepper::run(), will fall back to state_stopped if target reached or endstop hit More... | |
const uint8_t | state_runSpeed = 2 |
corresponds to AccelStepper::runSpeed(), will remain active until stopped by user or endstop More... | |
const uint8_t | state_runSpeedToPosition = 3 |
corresponds to AccelStepper::state_runSpeedToPosition(), will fall back to state_stopped if target position reached or endstop hit More... | |
const uint8_t | interruptReason_targetReachedByRun = 1 |
const uint8_t | interruptReason_targetReachedByRunSpeedToPosition = 2 |
const uint8_t | interruptReason_endstopHit = 3 |
const uint8_t AccelStepperI2CmaxBuf = 20 |
const uint8_t attachCmd = 40 |
const uint8_t attachResult = 1 |
const uint8_t currentPositionCmd = 21 |
const uint8_t currentPositionResult = 4 |
const uint8_t diagnosticsCmd = 42 |
const uint8_t diagnosticsResult = sizeof(diagnosticsReport) |
const uint8_t disableOutputsCmd = 27 |
const uint8_t distanceToGoCmd = 19 |
const uint8_t distanceToGoResult = 4 |
const uint8_t enableDiagnosticsCmd = 41 |
const uint8_t enableEndstopsCmd = 47 |
const uint8_t enableInterruptsCmd = 43 |
const uint8_t enableOutputsCmd = 28 |
const uint8_t endstopsCmd = 48 |
const uint8_t endstopsResult = 1 |
const uint8_t getStateCmd = 45 |
const uint8_t getStateResult = 1 |
const uint8_t isRunningCmd = 33 |
const uint8_t isRunningResult = 1 |
const uint8_t maxSpeedCmd = 15 |
const uint8_t maxSpeedResult = 4 |
const uint8_t moveCmd = 11 |
const uint8_t moveToCmd = 10 |
const long resError = 0 |
const uint8_t runCmd = 12 |
const uint8_t runResult = 1 |
const uint8_t runSpeedCmd = 13 |
const uint8_t runSpeedResult = 1 |
const uint8_t runSpeedToPositionCmd = 24 |
const uint8_t runSpeedToPositionResult = 1 |
const uint8_t runToNewPositionCmd = 25 |
const uint8_t runToPositionCmd = 23 |
const uint8_t setAccelerationCmd = 16 |
const uint8_t setCurrentPositionCmd = 22 |
const uint8_t setEnablePinCmd = 30 |
const uint8_t setEndstopPinCmd = 46 |
const uint8_t setMaxSpeedCmd = 14 |
const uint8_t setMinPulseWidthCmd = 29 |
const uint8_t setPinsInverted1Cmd = 31 |
const uint8_t setPinsInverted2Cmd = 32 |
const uint8_t setSpeedCmd = 17 |
const uint8_t setStateCmd = 44 |
const uint8_t speedCmd = 18 |
const uint8_t speedResult = 4 |
const uint8_t state_run = 1 |
corresponds to AccelStepper::run(), will fall back to state_stopped if target reached or endstop hit
const uint8_t state_runSpeed = 2 |
corresponds to AccelStepper::runSpeed(), will remain active until stopped by user or endstop
const uint8_t state_runSpeedToPosition = 3 |
corresponds to AccelStepper::state_runSpeedToPosition(), will fall back to state_stopped if target position reached or endstop hit
const uint8_t state_stopped = 0 |
stepper state machine states
state machine is inactive, stepper can still be controlled directly
const uint8_t stopCmd = 26 |
const uint8_t targetPositionCmd = 20 |
const uint8_t targetPositionResult = 4 |