Closed WebSamuraiDaisuke closed 3 years ago
MPU6886 works in M5stickC by M5.MPU6886.getAccelData(&accX, &accY, &accZ); So I write M5.IMU.getAccelData(&accX, &accY, &accZ);, but it get result "X is:0.00 Y is:0.00 Z is:0.00" in Plus. How can I get values from MPU6866 in Plus?
M5.MPU6886.getAccelData(&accX, &accY, &accZ);
M5.IMU.getAccelData(&accX, &accY, &accZ);
Hello @WebSamuraiDaisuke
Try calling M5.IMU.Init(); before using the MPU6886.
M5.IMU.Init();
Thanks Felix
we already add an example.
MPU6886 works in M5stickC by
M5.MPU6886.getAccelData(&accX, &accY, &accZ);
So I writeM5.IMU.getAccelData(&accX, &accY, &accZ);
, but it get result "X is:0.00 Y is:0.00 Z is:0.00" in Plus. How can I get values from MPU6866 in Plus?