smbus-cffi
smbus-cffi copied to clipboard
Real I²C protocol with i2c_master_recv and i2c_master_send transactions
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....
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.