Releases: dxinteractive/ResponsiveAnalogRead
Releases · dxinteractive/ResponsiveAnalogRead
Fix rawValue, fix keywords
- Fix bug where calls to
update(rawValue)
(notupdate()
) wouldn't setrawValue
, sorawValue
remained at 0. - Fix keyword separator
- Host readme image on github
Added default constructor and begin() method
ResponsiveAnalogRead can now be instantiated without passing any arguments to the constructor, and instead provide them via a call to begin(...)
Thanks to kshaffer for this one, and to edgar-bonet for the PR review.
1.1.1
Corrected keywords definition and fixed example file placement.
Version 1.1 - Improved sleep algorithm
- Improved the sleep algorithm to detect activity by using an exponential moving average on the margin of error (difference between new value and current one), so it behaves much more predictably with noisy readings, and is more accurate as it no longer prematurely halts responsive value movement.
- update() can now accept a rawValue parameter so alternatives to analogRead can be used and passed in.
- isSleeping() has been added to tell if the algorithm is in sleep mode
- setSleepActivityThreshold() and setAwakeActivityThreshold() have been removed in favour of a single function setActivityThreshold() which accepts a float.
- setSleepDelay() has been removed as it is no longer required.
1.0.1
Update README.md
Initial release
1.0 Update README.md