...you may actually vary your interval depending on your cal culated speed... within the counter loop... Since the event knows about the time since lat event, you can speed up or down... and extend battery life... and even more sophisticated: intervalling based on the increase/decrease of the acceleration and deceleration...
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.
...you may actually vary your interval depending on your cal culated speed... within the counter loop... Since the event knows about the time since lat event, you can speed up or down... and extend battery life... and even more sophisticated: intervalling based on the increase/decrease of the acceleration and deceleration...