Richard-Gemmell / lsm9ds1-rjg

Pure python driver for the LSM9DS1 IMU sensor made by ST Microelectronics.
MIT License
8 stars 5 forks source link

Change SMBusWrapper to SMBus #2

Closed BentPen closed 1 week ago

BentPen commented 4 months ago

See 0.4.0 here.

Change needed in final import of lsm8ds1.py.

BentPen commented 4 months ago

Update: I made this issue by mistake. I had meant to post it on a derived repo (here). Somehow I totally overlooked that I had wandered here to the parent repo it was forked from.

Richard-Gemmell commented 4 months ago

No problem. It's nice to know that someone's making use of it somewhere. :)

BentPen commented 4 months ago

Reopening because the issue actually is present here too! Albeit in i2c_transport.py in the case of this repo.

(I ended up returning to this repo hoping it would shed light on what I'm doing wrong with my Raspberry Pi 3B+ and this breakout board. Still stuck on that actually...)

BentPen commented 4 months ago

Okay, regarding my comment in parentheses above: It turns out I just wasn't thorough enough, and kept using GPIO 5/6 on my RPi (in keeping with how Adafruit did it in their MicroPython code). When I switched to GPIO 7/8 (the defaults for SPI0) the simple.py script ran flawlessly (though just a heads up, you spelled Gyro "Gryo" somewhere).

Now back to the tinkering! Thank you for your hard work on this code!

Richard-Gemmell commented 1 week ago

I've fixed the SMBus issue and the typos. I've released it as v1.0.0 in PyPi.

Thanks for reporting this.