- Add
acceleration()
getter - Add
isPowered()
(issue #17)
- Respect
tone()
's minimum frequency (issue #14) - Ignore repeated calls to
spin()
with the same values (issue #14)
- Fix ticker includes in examples (was
.h
instead of.hpp
)
- Remove deprecated 3-parameter
begin()
(usesetEnablePin()
instead) - Add support for four-wire stepper motors
ContinuousStepper
is now a template class with two parameters, see the first table below.- Add
ContinuousStepper.hpp
that keeps everything in theArduinoContinuousStepper
namespace. - Some include files have been renamed, see the second table below.
Before | After |
---|---|
ContinuousStepper |
ContinuousStepper<StepperDriver> |
ContinuousStepper_AWF |
ContinuousStepper<StepperDriver, AwfTicker> |
ContinuousStepper_KhoiH<Teensy_PWM> |
ContinuousStepper<StepperDriver, KhoihTicker<Teensy_PWM>> |
ContinuousStepper_TeensyTimerTool |
ContinuousStepper<StepperDriver, TeensyTimerToolTicker> |
ContinuousStepper_Timer1 |
ContinuousStepper<StepperDriver, TimerOneTicker> |
ContinuousStepper_Timer3 |
ContinuousStepper<StepperDriver, TimerThreeTicker> |
ContinuousStepper_Tone |
ContinuousStepper<StepperDriver, ToneTicker> |
Before | After |
---|---|
ContinuousStepper_AWF.h |
ContinuousStepper/Tickers/AnalogWriteFrequency.hpp |
ContinuousStepper_KhoiH.h |
ContinuousStepper/Tickers/Khoih_PWM.hpp |
ContinuousStepper_TeensyTimerTool.h |
ContinuousStepper/Tickers/TeensyTimerTool.hpp |
ContinuousStepper_Timer1.h |
ContinuousStepper/Tickers/TimerOne.hpp |
ContinuousStepper_Timer3.h |
ContinuousStepper/Tickers/TimerThree.hpp |
ContinuousStepper_Tone.h |
ContinuousStepper/Tickers/Tone.hpp |
- Fix occasional missed ticks on timer-based implementations
- Add
ContinuousStepper_Tone
which usestone()
instead ofdigitalWrite()
for the step pin - Add
ContinuousStepper_AWF
which usesanalogWriteFrequency()
on Teensy 3 and 4 - Add
ContinuousStepper_KhoiH
which uses Khoi Hoang's PWM libraries
- Set dir pin level only when it changes (used to be on each tick)
- Fix acceleration bug after reversing the rotation (issue #7)
- Add
setEnablePin()
and allow inverting the pin's level (issue #6) - Stop timer when
powerOff()
is called
- Add
begin()
which now receives the pin numbers - Add class
ContinuousStepper_TeensyTimerTool
to support theTeensyTimerTool
library
- Remove call to
delayMicroseconds()
- Remove
setPulseWidth()
- Fix error when the
TimerOne
library is not available - Add class
ContinuousStepper_Timer3
to support theTimerThree
library
- Add class
ContinuousStepper_Timer1
to support theTimerOne
library