kplindegaard / smbus2

A drop-in replacement for smbus-cffi/smbus-python in pure Python
MIT License
243 stars 68 forks source link

how to read/write devices with 10-bit address i2c bus #54

Open ingol-hun opened 3 years ago

ingol-hun commented 3 years ago

Hello! Please tell me, I don't understand. how to read/write devices with 10-bit address. is it possible to do with this project?

kplindegaard commented 3 years ago

10-bit support is very rare. Many drivers don't support it either, like the Raspberry Pi 3. Don't know about model 4, though.

Now, smbus2 builds upon the Linux kernel for i2c/SMBus communication. You should for example check what's said about 10-bit support in kernel.org's I2C/SMbus section. It's far from straight forward...

Even though this library probably can't help you in your quest, it can at least help detecting whether your HW supports 10-bit or not.