I have a several questions regarding pigpio I2C functions as below.
- how to check if a I2C device is connected with pigpio? I would like to just check if a device is connected without read/write operation. i could implement the same feature with following code in Arduino. when error == 0, a device is connected.
Wire.beginTransmission(address);
error = Wire.endTransmission();
- does "i2cZip" function support "repeated start"? there is no "start", "stop" command codes exist. bit-banged "bbI2CZip" supports "repeated start" but i need H/W function.
[i2cZip Example]
Set address 0x53, write 0x32, read 6 bytes
Set address 0x1E, write 0x03, read 6 bytes
Set address 0x68, write 0x1B, read 8 bytes
End
0x04 0x53 0x07 0x01 0x32 0x06 0x06
0x04 0x1E 0x07 0x01 0x03 0x06 0x06
0x04 0x68 0x07 0x01 0x1B 0x06 0x08
0x00