This class contains several extension methods for I2CDevice in order to read and write register based data.
For every extension method “” there’s also an extension method “Try<MethodName”, whereas the “Try…” method returns a boolean value indicating, whether the transactions have been successfull, while the methods not starting with Try… throw an Exception.
Those methods allow you to
read / write registers,
read / write consecutive registers,
read / write single bits in registers,
read / write multiple bits in registers
It also includes and uses the extension methods Execute and Broadcast published by “Bec a Fuel”, which provide a simple way to address multiple I2C slaves.
Actually, I had included it, but received a compiler warning, that it had been already declared and the one from mscorlib.dll would be used. So it seems, that it is already included in 4.2.