ZHomeSlice / Simple_MPU6050

Going Live
MIT License
88 stars 24 forks source link

Begin not exist !! #28

Open tonydee2377 opened 1 year ago

tonydee2377 commented 1 year ago

mpu.begin(); 'class Simple_MPU6050' has no member named 'begin'

Have you tried the examples? how is it possible that there is such a big mistake and no one noticed?

thanks

revell1 commented 1 year ago

Have you got the latest version of Simple_Wire library, as I think you will find mpu.begin() is inherited from that library, and sets up the I2C interface. Get it from "github.com/ZHomeSlice/Simple_Wire"

It was a change that was made in one of the last updates to try to resolve problems I had with PI Pico builds getting the startup order of things wrong.

If you are using an old Simple_Wire library that may be the issue.

Also see my issue #27, at the very end of that issue, as there were issues that were target board specific, so you may have found another board varient that needs a #define fix.