This is my current test code:
I2CDevice eeprom = new I2CDevice(new I2CDevice.Configuration(1, 400)); byte[] buffer = new byte[6]; I2CDevice.I2CReadTransaction read = I2CDevice.CreateReadTransaction(buffer); eeprom .Execute(new I2CDevice.I2CTransaction[]{read}, 1000);
This code produces this result:
A few Thoughts:
- The datasheet says that the control bit should be: 10100001 to do a read from the first half of the first chip on the bus, is this what is output when I create a ReadTransaction?
- How can I figure out exactly what bits are being transferred when I do a read/write transaction?