- none
Note: Unreleased changes are checked in but not part of an official release (available through the Arduino IDE or PlatfomIO) yet. This allows you to test WiP features and give feedback to them.
- fixed bug in
setIncrement()
as pointed out by WJurasek-KV - updated
SimpleCounter.ino
example
- updated enums with class feature
- Added
triggerOnBounds(bool triggerEvents = true)
method to be able to suppress rotate events when the boundaries are reached - Made
now
and time related attributes tounsigned long
- Replaced cases with lookup table to simplify
loop()
- Simplified state change in the
loop()
- Positions are only set within the defined boundaries
- some refactoring suggested by GPT-4
Most changes were suggested in #43 by Alex Herman. Thank you.
-
added speedup functionality as suggested in #37
void setSpeedupInterval(int time); void setSpeedupIncrement(int inc); void enableSpeedup(bool enable); bool isSpeedupEnabled() const; int getSpeedupInterval() const; int getSpeedupIncrement() const; void setSpeedupStartedHandler(CallbackFunction f); void setSpeedupEndedHandler(CallbackFunction f); bool isInSpeedup() const;
-
multiple similar events can now be surpressed
retriggerEvent(bool retrigger)
-
Added ESP8266 and ESP32 interrupt examples
-
refactored loop and event triggering
-
fixed bug with ID
- replaced direction constants with enum, now use it like this:
rotary_direction::right
- refactored
loop()
- added ID feature to the class as suggested by Jon in #34
- added == operator as suggested by Jon in [#34](https://github.com/LennartHennigs/
- Defined getter methods as
const
- Added option to define increment as suggested by sblaisot in pull request #32
- Added a
begin()
function and a default constructor the be able to instantiate an object within a function - Updated the
RangedCounter
andSimpleCounterWithButton
examples. They now usebegin()
- Added getter and setter functions for the upper and lower bounds
void setUpperBound(int upper_bound);
void setLowerBound(int lower_bound);
int getUpperBound();
int getLowerBound();
- remove unused variable
last_read_ms
as pointed out by ornea in #26 - cleaned up the protected vars as suggested by Jim-2249 in #30
- simplified the
loop()
function
- reordered the constructor parameters to mitigate a code breaking change as suggested by ab-it in pull request #25
- made
resetPosition()
callback trigger optional as suggested by ab-it - fixed bug in
directionToString()
introduced in the 1.4 version, found by ab-it
- added callback to
resetPosition()
as suggested by ab-it in #17 - Fixed warning in
directionToString()
as suggested by ab-it in #18 - Added option to define initial value in the constructor as suggested by ab-it in #20
- Fixed upper_bound overflow preventing exemple to work on arduino Uno as suggested by sblaisot in pull request #22
- Avoid triggering change_cb after resetPosition to other position than 0
- Fixed typo in example
- updated
README.md
- added function
setStepsPerClick()
, as requested by asalillo in #12 - Fixed bug #13 in
resetPosition()
, as pointed out by jjarp - removed
#pragma
message formoves_per_click
constructor parameter - renamed variable
moves_per_click
tosteps_per_click
- Fixed bug related to minimum and maximum bounds
- Added
RangedCounter.ino
example - Added optional parameter to
resetPosition()
- Created and added CHANGELOG.md
- Added optional minimum and maximum bounds to constructor (as suggested by cornfeedhobo in issue #9)
- Simplified example
- Removed
yield()
in mainloop()
since it caused some problems
- Added
yield()
to the mainloop()
- Updated the example (as suggested by per1234)
- Added option to set number of clicks to constructor (as suggested by svititom)
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.