AccelStepper Class Reference AccelStepper类引用
Support for stepper motors with acceleration etc. More...
支持步进电机加减速等
#include <AccelStepper.h>
Public Types 公共类型 |
|
enum | MotorInterfaceType { FUNCTION = 0, DRIVER = 1, FULL2WIRE = 2, FULL3WIRE = 3, FULL4WIRE = 4, HALF3WIRE = 6, HALF4WIRE = 8 } |
Symbolic names for number of pins. Use this in the pins argument the AccelStepper constructor to provide a symbolic name for the number of pins to use. More... 针数的符号名称。在引脚参数AccelStepper构造函数中使用它,为要使用的引脚数量提供一个符号名称。 |
|
Public Member Functions公共成员函数 |
|
AccelStepper (uint8_t interface=AccelStepper::FULL4WIRE, uint8_t pin1=2, uint8_t pin2=3, uint8_t pin3=4, uint8_t pin4=5, bool enable=true) 设置电机类型 | |
AccelStepper (void(*forward)(), void(*backward)()) | |
void | moveTo (long absolute) 移动到绝对位置 |
void | move (long relative) 移动相对位置 |
boolean | run () 带加减速运行 |
boolean | runSpeed () 恒速运行 |
void | setMaxSpeed (float speed) 设置最大速度 |
float | maxSpeed () 获取最大速度 |
void |