What pins to use for I2C bus with AVR Mega2560

Is there a possibility to use the pins 20 and 21 as interrupt pins and use SCL and SDA pins near the USB port for I2C simultaneously ?

Check with a multi-meter. I'm pretty sure that you'll find that the SCL and SDA pins and pins 20 and 21 are connected. The extra locations are for convenience, not for isolation.

1 Like