Skip to content

Releases: dxinteractive/ResponsiveAnalogRead

Fix rawValue, fix keywords

10 Jan 08:54
504c16b
Compare
Choose a tag to compare
  • Fix bug where calls to update(rawValue) (not update()) wouldn't set rawValue, so rawValue remained at 0.
  • Fix keyword separator
  • Host readme image on github

Added default constructor and begin() method

15 Dec 10:28
de8eb59
Compare
Choose a tag to compare

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

28 Aug 12:46
Compare
Choose a tag to compare

Corrected keywords definition and fixed example file placement.

Version 1.1 - Improved sleep algorithm

25 Aug 10:28
Compare
Choose a tag to compare
  • 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

28 Jun 11:49
Compare
Choose a tag to compare
Update README.md

Initial release

27 Jun 13:15
Compare
Choose a tag to compare
1.0

Update README.md