The intervals at which the accelerometer values change are indeed about 1.6Hz but the function itself is called way too often! What is going on here? How can I fix this?
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 have the following code on my puck.js (firmware 2v21):
With or without the first line, I get logs like this:
The intervals at which the accelerometer values change are indeed about 1.6Hz but the function itself is called way too often! What is going on here? How can I fix this?