Puck.on('accel',function(a) {}) is called way too often #4365
Unanswered
espruino-discuss
asked this question in
Puck.js, Pixl.js, Jolt.js and MDBT42
Replies: 1 comment
-
Posted at 2024-11-09 by user159242 Okay, I solved it by repowering the puck. Hopefully this helps future users with the same problem |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2024-11-09 by user159242
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?
Beta Was this translation helpful? Give feedback.
All reactions