Hi,
Reading values from I2C sensor´s memory is simple.
At first, you need I2CConfiguration object. But this object is just a configuration.
So, you need I2CDevice object.
Then you create an array of type I2CTransaction with two elements.
As first element you use I2CWriteTransaction. You write address, from which you want to read, to the device.
Second element would be I2CReadTranscation. With this transaction, you read data from selected address.
Finally, you call I2CDevice.Execute().
Hope this helps.
- Rik P. likes this