You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.