WiringPi.Net icon indicating copy to clipboard operation
WiringPi.Net copied to clipboard

I2C 16 bit operations no sign or endian accomodation

Open pmeloy opened this issue 6 years ago • 0 comments

Not really the wrapper's fault I don't think as I couldn't really find 16 bit reads and writes except as purpose written methods in specific devices. Could be wrong, might be a universal one I just can't find (not a C or C++ expert by any means).

So for two or more byte reads I use the ReadReg8() methods and assemble the bytes appropriately.

I haven't had any issues with the WriteReg16 but then I haven't actually used it. Didn't see anything dealing with sign/endian in the intellisense information though.

pmeloy avatar Mar 26 '18 01:03 pmeloy