setWatch
interrupt loop for MPU6050 seems to block async processes on Espruino.
#5763
Replies: 1 comment
-
Posted at 2017-06-08 by @gfwilliams Ok, thanks for giving that a go. It's difficult to track down without having an MPU6050 here (it's a contributed module). If you uncomment the It'd be interesting if you could compare If you're able to change the module yourself, I think the while loop in this line: https://github.com/espruino/EspruinoDocs/blob/master/devices/MPU6050_DMP.js#L121 should be removed, and the check moved into the My hunch is that the interrupt line is maybe getting pulled low for reasons other than the FIFO having data, and that's causing it to enter the Posted at 2017-06-08 by @gfwilliams Just quickly:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-06-08 by trusktr
Continuing from espruino/EspruinoDocs#367 (comment),
I tried the
"falling"
edge suggestion, but the behavior seems the same, the HTTP server never responds, and I never see the------ dmpYawPitchRoll
output in Espruino console.Here's the code I'm trying:
Making an HTTP request from the computer to Espruino doesn't work. If you uncomment the
console.log
calls, thesetWatch
loop is working, and I will see that output repeatedly in console.Beta Was this translation helpful? Give feedback.
All reactions