Debouncing issues with setWatch(); #4741
Replies: 1 comment
-
Posted at 2015-05-26 by @gfwilliams Interesting - thanks. That looks like a regression - I'll create a bug for it and will see if I can get it done for the next release. When you're using debounce you're not going to get a very accurate time anyway though given all the bouncing. In this case, why not just use the Granted getting button state is more of a pain, but the best bet for now is just to use Posted at 2015-05-28 by DrAzzy . Posted at 2015-05-28 by DrAzzy . Posted at 2015-06-03 by @gfwilliams Fixed now, it'll be in the 1v80 release. Available from www.espruino.com/binaries/git/commits/03bc4de4ed9fee0a7863c0e55040ad79f2a2fa35 in a few minutes |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-05-25 by RandyHarmon
Firmware 1v79
I have a noisy button on B5.
The default debounce setting (10ms) per setWatch() docs doesn't seem to do anything. When I add debounce: 20 (or any value), it prevents the callback from getting any args. Code below.
Recommendations?
Beta Was this translation helpful? Give feedback.
All reactions