Pi4J / pi4j-v2

Pi4J Version 2.0
Apache License 2.0
266 stars 54 forks source link

linuxfs i2c compatibility with Pigpio and the i2c spec dictates these #333

Closed taartspi closed 4 months ago

taartspi commented 4 months ago

i2c interface should use a restart between the write and read operation. --Combined format (see Figure 13). During a change of direction within a transfer, the START condition and the target address are both repeated, but with the R/W bit reversed.-- int i2cReadByteData(unsigned handle, unsigned i2cReg) int i2cReadWordData(unsigned handle, unsigned i2cReg)