#I2CDevice: How to select device register?

1 messages · Page 1 of 1 (latest)

stray panther
#

On my I2C bus I have a device that does not come with its own library. Currently I access (write) it like this:

with SMBus(1) as bus:
bus.write_i2c_block_data(0x58, 0x01, byte_array)
I just wonder how I can achieve this with I2CDevice.write()

Seems there is nothing like a register:
:param ~ReadableBuffer buffer: buffer containing the bytes to write :param int start: Index to start writing from :param int end: Index to read up to but not include; if None, use len(buf)

How can I set the register the data should be written to?