AccelStepper功能及函数功能(二)

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 
  • 4
    点赞
  • 49
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值