Open Jerzeek opened 7 months ago
The last write shown is actually coming from this line:
device = I2CDevice(i2c, 0x0f)
since the I2CDevice does a device discovery check (probe) when created.
That is followed by a start that does nothing. That should be the start of the context manager.
Try suppressing the probe check and see if that changes the behavior.
device = I2CDevice(i2c, 0x0f, probe=False)
Hi folks! I have a strange problem with one of my I2C devices. If I use the traditional try_lock() function, I get correct communication with my I2C device, If I use the improved I2CDevice, the communication stops. This is the sample code I wrote to check my sanity:
This is what I see on the logic analyser:
It seems to be specific to the I2C device, it is a grove i2c motor driver I tried the same with a temperature sensor but that worked fine..