I2C: how to read a single byte without register address?
Some ICs, such as PCF8574 bus expander, have not any internal registers and accessible using the device address only. So we can write or read data using device address only. If say about Python module, for writing we can use i2c.write(addr, byte) where addr is I2C slave device address. But what about reading data from device where register address is not used? How I can read single byte using Python module if device have not register address?
I have the same question. The current I2C library seems to have been written with a specific device in mind. Has anyone come up with a solution for this?
@Valeriy-Yatsenkov I'm used smbus2 library for Python. It's good work with Onion and in Python 2.7 and Python 3.x
For read and write without register address used read_byte and write_byte functions.
By the way I used PCF8574 with this library too.