本文为原文翻译,欢迎纠错。
AccelStepper类引用
Detailed Description 详细说明
Support for stepper motors with acceleration etc.
支持步进电机加速运行等
This defines a single 2 or 4 pin stepper motor, or stepper moter with fdriver chip, with optional acceleration, deceleration, absolute positioning commands etc. Multiple simultaneous steppers are supported, all moving at different speeds and accelerations.
这定义了一个2或4针单个步进电机,或驱动芯片驱动的步进电机,这些电机可定义加速,减速,绝对定位命令等。支持多个同步步进电机同时运行,所有步进电机都可以不同的速度和加速度运行。
Operation 运行
This module operates by computing a step time in microseconds. The step time is recomputed after each step and after speed and acceleration parameters are changed by the caller. The time of each step is recorded in microseconds. The run() function steps the motor o