I’m the proud owner of a LSM303D breakout. Apologies if this question has been asked before.
I couldn’t help but notice that there’s no support for it in the current pimoroni pico uf2, v1.19.6.
Is this forthcoming, or is there a reason it’s not yet been added?
According to the product page it not compatable with pico, but im only a rookie[lol] so i could be wrong . *from product page *
Compatible with Raspberry Pi 3B+, 3, 2, B+, A+, Zero, and Zero W
That one’s not currently supported in pimoroni-pico, but the MicroPython drivers in this thread look like they might do the job! Pimoroni LSM303D with pico/micropython: integration issues with I2Cdevice lib - #10 by staberas
After some tinkering with the i2c pin numbers. and some light debugging. It’s accelerometer is returning results. Will there be support in the future for the magnetometer, specifically?
I lack the pythonic skills to create my own, regrettably.
Edit: better phrasing
Probably best to pop a feature request in via Github issue if you’d like to see official Pico drivers for this breakout: Issues · pimoroni/pimoroni-pico · GitHub
I’ll look into that, thanks. 👍
Trawling through github, I came across this repo LSM303D-Pico-Micropython that runs with the Pi Foundation’s default micropython.uf2.
Returns results for the accelerometer & the magnetometer. Perhaps it could be baked into the next pico firmware release?
Posting here as it may assist others.