I2C SDA pin
R2026bSerial clock pin number of Arduino board for I2C communication
Since R2023a
Model Configuration Pane: Hardware Implementation / Hardware board settings / Target hardware resources / I2C properties
Description
Set the serial data pin number of the Arduino® board to which the I2C peripheral device is connected. This table lists the Arduino boards that support configuring the SDA pins for I2C modules 0 and 1.
Settings
| Supported Arduino Boards | I2C Module 0 | I2C Module 1 |
|---|---|---|
| ESP32-WROOM (Arduino Compatible), ESP32-WROVER (Arduino Compatible) | 21 (default), 0-5, 12-19, 22-23, 25-27, 32-36, 39 | NA |
| Raspberry Pi® Pico (Arduino Compatible), Raspberry Pi Pico W (Arduino Compatible) | 4 (default), 0, 8, 12, 16, 20 | 26 (default), 2, 6, 10, 14, 18 |
For every I2C module, you can individually configure the bus speed, SDA and SCL pins. However, not all Arduino boards support configuring I2C module 0 and module 1. This table lists the I2C modules supported by different Arduino boards.
| Arduino Boards | Supported I2C Modules |
|---|---|
| I2C0, I2C1 |
| I2C0 |
Programmatic Use
| No programmatic use is available. |
Version History
Introduced in R2023a