Hi there - trying to use the FEZ T18 (Tiny v1) with the MAX14830. That chip has a different I2C address for reading vs writing. The manual states that a read should do:
START : I2C-write-addr : reg-to-read : START-REPEAT : I2C-read-addr : : STOP
So far I’ve done the following:
`var controller = I2cController.FromName(FEZ.I2cBus.I2c1);
var i2CDevice_uart0_rd = controller.GetDevice(new I2cConnectionSettings(UART0_RD, I2cAddressFormat.SevenBit, I2cBusSpeed.StandardMode));
var i2CDevice_uart0_wr = controller.GetDevice(new I2cConnectionSettings(UART0_WR, I2cAddressFormat.SevenBit, I2cBusSpeed.StandardMode));
byte[] singleByteBufferB = new byte[1];
i2CDevice_uart0_wr.WritePartial(new byte[] { 0x25 });
i2CDevice_uart0_rd.Read(singleByteBufferB);`
I always get an InvalidOperationException - 0x00000000 in WriteRead which I’m not even calling.
What am I missing?