- 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
.hinstead of.hpp)
- Remove deprecated 3-parameter
begin()(usesetEnablePin()instead) - Add support for four-wire stepper motors
ContinuousStepperis now a template class with two parameters, see the first table below.- Add
ContinuousStepper.hppthat keeps everything in theArduinoContinuousSteppernamespace. - 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_Tonewhich usestone()instead ofdigitalWrite()for the step pin - Add
ContinuousStepper_AWFwhich usesanalogWriteFrequency()on Teensy 3 and 4 - Add
ContinuousStepper_KhoiHwhich 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_TeensyTimerToolto support theTeensyTimerToollibrary
- Remove call to
delayMicroseconds() - Remove
setPulseWidth()
- Fix error when the
TimerOnelibrary is not available - Add class
ContinuousStepper_Timer3to support theTimerThreelibrary
- Add class
ContinuousStepper_Timer1to support theTimerOnelibrary