Skip to content

Add interval option and improve performance

Choose a tag to compare

@furbrain furbrain released this 17 Jan 15:10
· 7 commits to main since this release

This release introduces the interval parameter for SimpleButton and Button - this lets you set the underlying polling rate both for the keys object and the background task. This improves performance by reducing unnecessary polling.

The Button task now pays attention to the timestamp on keypad.Event so clicks received during a long running task are processed appropriately even if the background task did not run at the correct time. This does not apply to Blinka based systems.