Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove SMBus dependency #1

Open
sfe-SparkFro opened this issue Oct 30, 2023 · 0 comments
Open

Remove SMBus dependency #1

sfe-SparkFro opened this issue Oct 30, 2023 · 0 comments

Comments

@sfe-SparkFro
Copy link
Contributor

sfe-SparkFro commented Oct 30, 2023

This library requires SMBus:

from smbus2 import SMBus, i2c_msg

Looks like it's only used here:

# Block Read (>32 bytes) bytesToRead from the sensor
with SMBus(1) as bus:
msg = i2c_msg.read(self.address, bytesToRead)
bus.i2c_rdwr(msg)

Obviously this doesn't work in MicroPython, need to update to be more platform agnostic.

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

No branches or pull requests

1 participant