I2C Bus Implementation in Python
Hi, I have been having issues with the I2C bus communications with an external sensor. Upon further investigation, I realised the problem was due to SCL and SDA not being aligned - The SCL clock seems to be slightly later than SDA.
My code is as follows:
device_addr = 0xFF
register_addr = 0x12
value = c_uint8(0x90)
libmetawear.mbl_mw_i2c_write(device.board, device_addr, register_addr, byref(value), 1)
The image below is what I obtain for sending the above code (0xFF as device address)
The image below is what I obtain for sending the exact same code with a different device address - 0b10101010.
Could someone please let me know if it's a firmware, or hardware issue? I'm really confused at this moment.