bolderflight / invensense-imu

Arduino and CMake library for communicating with the InvenSense MPU-6500, MPU-9250 and MPU-9255 nine-axis IMUs.
MIT License
513 stars 214 forks source link

Set SPI clock speed #110

Closed tcerqueira closed 2 years ago

tcerqueira commented 2 years ago

I'm using an array of mpu9250 and a teensy4.0 and the default speed was inconsistent. Probably the longer wires, multiple sensors on the bus and maybe the teensy SPI known problems limits the max operating speed and lowering it seemed to do the trick. However it is hardcoded and I would consider some way to set the speed. Not a big deal tho. Thanks for this lib!

flybrianfly commented 2 years ago

Thanks for the suggestion!