No problem. Can you try moving back to the website modules now?
I2C1.setup({scl:A5, sda:A4}); const MPU = require("MPU6050").connect(I2C1); // 2nd parameter is the fifoRate. The DMP output frequency = 200Hz / (1 + fifoRate) const DMP = require("MPU6050_DMP").create(MPU, 3); function pidLoop(args) { var data = DMP.getData(); if(data !== undefined) console.log(DMP.getYawPitchRoll(data)); } setWatch(pidLoop, D13, { repeat:true, edge:'rising' });
I also found out that the MPU6050 module wasn't minifying quite right, so now it should be a bit faster and use a bit less space too!
@Gordon started
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.
No problem. Can you try moving back to the website modules now?
I also found out that the MPU6050 module wasn't minifying quite right, so now it should be a bit faster and use a bit less space too!