Below snapshot shows how the I2C pins are routed to connectors on the Arduino Uno board. I2C lines are connected in the schematic as shown below:
As we can observe from above schematic, even though I2C pins are available on two different connectors, they are the same and from PIN#27, PIN#28.
The pins on the Arduino Uno board are highlighted in below figure.
If we use Arduino Sensor shield, we can only access I2C pins routed to the Analog connector. Arduino Sensor shield does not connect to the two I2C pins on the top.
I2C lines can be defined as below in the code:
#define SDA A4
#define SCL A5
0 Comments