I want to use I2C software instead hardware I2C. Because a buggy parto of the I2C related with clock stretching.
I can enable in boot.txt adding this:
It would create a /dev/i2c-3.
Now I want to access using wiringpi library, but I don't know how to choose bus 3 instead of default bus. The wiringpi library saids...
The ID is the I2C number of the device and you can use the i2cdetect program to find this out. wiringPiI2CSetup() will work out which revision Raspberry Pi you have and open the appropriate device in /dev.
Is there a way to specify which bus do you want to use?