That's interesting - so even if you remove the setTimeout bit from Puck.on('accel',function(a) { and just have your original code, you're getting higher readings?
I just looked at the code and it seems that the movement example sets the accelerometer to the +/1 2g scale, where Espruino sets it to +/- 4g by default.
So basically just doubling your values should fix it for you?
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.
That's interesting - so even if you remove the
setTimeout
bit fromPuck.on('accel',function(a) {
and just have your original code, you're getting higher readings?I just looked at the code and it seems that the movement example sets the accelerometer to the +/1 2g scale, where Espruino sets it to +/- 4g by default.
So basically just doubling your values should fix it for you?