What's the difference between I2cDevice.WriteRead() and .Read()?

Pretty much as the title states. Furthermore, is there documentation anywhere for the I2C library?

Usually WriteRead has repeat start between Write and Read which some slave devices need.

It is different with Write() then Read() which is spited two different transaction.

Read does only Read.

Thanks, I understand now. Is there documentation anywhere that describes the methods within I2cDevice (or for that matter for any of the other TinyCLR libraries)? I don’t want to have to spam the forum with hundreds of similar questions…

No worries we are here to help. If we know what your are trying to do then we can give you examples or point you to what you need to read.

1 Like