I can't find a fault in my code. Could it be that Bangle.on('step') fires only at multiples of 80ms?
...
If I may answer my own question: Bangle.setPollInterval will improve resolution. I think the polling interval should be less or equal one-third of the minimum step duration. If the parameters were set in a menu, the polling interval could be adjusted accordingly.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I can't find a fault in my code. Could it be that Bangle.on('step') fires only at multiples of 80ms?
...
If I may answer my own question: Bangle.setPollInterval will improve resolution. I think the polling interval should be less or equal one-third of the minimum step duration. If the parameters were set in a menu, the polling interval could be adjusted accordingly.