karosium / smbusb

USB SMBus Interface
GNU Lesser General Public License v2.1
141 stars 42 forks source link

Python bindings compatible with 'smbus' module #27

Open mefistotelis opened 3 years ago

mefistotelis commented 3 years ago

There are two major smbus modules for Python, already:

But these are using Linux kernel i2c modules, so are not multi-platform, and I don't think there's a way to use them over USB.

I think it might be useful to create Python bindings for smbusb as well, preferably keeping the interface used by existing modules.

(Just wanted to start a discussion on that, feel free to comment.)

mefistotelis commented 3 years ago

The libsmbusb interface contains only smbus messages, it doesn't allow general I2C messages. It would require FW modifications to add I2C messaging.

Though a version without I2C features seem to e doable right now.