I’m looking into the I2C API, and I’m getting a bit confused. There seem to be multiple ways to create an I2C transaction.
I can either use the static I2CDevice.CreateReadTransaction method ( [url]Microsoft Learn: Build skills that open doors in your career ), or create a new I2CDevice.I2CReadTransaction object ( [url]Microsoft Learn: Build skills that open doors in your career ). I’m puzzled as to what the difference is. Both take the same number of arguments.
I asked this on StackOverflow as well, but got no response: [url]http://stackoverflow.com/q/6138853/102441[/url]
Which should I use, and why?