Need to change pins assigned to I2C.

Is there a way to over ride the pins used by the I2C (wire.lib)? Currently A4 and A5 are used. In my sketch A4 is being used in another lib. I would like to assign A6 to replace it, but only in this sketch.

Any help would be much appreciated.


These pins are hardware defined. What you are looking for is a software I2C library. This question has come up before - apparently without resolution:

Thanks Mark, did not realize the I2C was driven by hardware. I'll have to change the LCD driver to get it off the A4 pin.

Thanks again, Babak

There is a software i2c library - softi2cmaster - but it would be best to use the hardware lines and move the LCD.