smbus-cffi icon indicating copy to clipboard operation
smbus-cffi copied to clipboard

Real I²C protocol with i2c_master_recv and i2c_master_send transactions

Open kaklik opened this issue 8 years ago • 1 comments

Hello, What is the best way to implement i2c_master_recv and i2c_master_send transactions in to a Python library? https://www.kernel.org/doc/Documentation/i2c/i2c-protocol

I searched for Python library which could call these I2C standard transfers. But I was not successful.. Every known Python library implements SMBus transfer subset only....

kaklik avatar Mar 13 '16 00:03 kaklik

I solved this problem by adding new methods to my fork of i2c-tools' python-smbus module. Details are here: https://github.com/MLAB-project/pymlab/issues/1#event-587804779

The improvement allows correct readout of real I2C devices (not SMBus) which have not addressed registers.

kaklik avatar Nov 23 '16 09:11 kaklik