Skip to content

Conversation

@Vali0004
Copy link

@Vali0004 Vali0004 commented Nov 4, 2025

This adds support for the QMC5883P, as well as the WHOAMI, as per my own research and the datasheet.
Sadly, I needed to modify the scan code to special case it, as it wasn't always detected when using it over the secondary I2C data lines of a IMU. It will sometimes work without it, but it isn't 100% reliable, so I feel it's better to have done so.

See the datasheet: https://www.qstcorp.com/upload/pdf/202202/%EF%BC%88%E5%B7%B2%E4%BC%A0%EF%BC%8913-52-19%20QMC5883P%20Datasheet%20Rev.C(1).pdf

I ended up modifying the BMI270 to clearly have the name, for clarity. I know this project does not support other BMI chips, but my personal fork may end up doing so. (even though a PR will never be made, so no one has to maintain it). If needed, I can revert it, but I see no harm.

The other thing I did was remove some miscellaneous whitespaces in some of the calibration and scan code.

From my previous PR, with more comments for clarity on why certain things were done.

@Vali0004 Vali0004 force-pushed the main branch 4 times, most recently from f598a23 to 0dc7ad9 Compare November 10, 2025 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant