Skip to content

Releases: dxinteractive/ResponsiveAnalogRead

Fix rawValue, fix keywords

Choose a tag to compare

@dxinteractive dxinteractive released this 10 Jan 08:54
504c16b
  • 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

Choose a tag to compare

@dxinteractive dxinteractive released this 15 Dec 10:28
de8eb59

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

Choose a tag to compare

@dxinteractive dxinteractive released this 28 Aug 12:46

Corrected keywords definition and fixed example file placement.

Version 1.1 - Improved sleep algorithm

Choose a tag to compare

@dxinteractive dxinteractive released this 25 Aug 10:28
  • 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

Choose a tag to compare

@dxinteractive dxinteractive released this 28 Jun 11:49
Update README.md

Initial release

Choose a tag to compare

@dxinteractive dxinteractive released this 27 Jun 13:15
1.0

Update README.md