Complete the code to define the I2C data line (SDA) pin.
const int SDA_PIN = [1];The SDA line is commonly assigned to pin 21 in many microcontroller boards.
Complete the code to define the I2C clock line (SCL) pin.
const int SCL_PIN = [1];The SCL line is commonly assigned to pin 22 in many microcontroller boards.
Fix the error in the I2C initialization function to set SDA and SCL pins correctly.
void i2c_init() {
i2c_config_t conf;
conf.sda_io_num = [1];
conf.scl_io_num = 22;
// other config code
}The SDA pin must be set to 21 to match the hardware wiring.
Fill both blanks to complete the I2C configuration struct with correct SDA and SCL pins.
i2c_config_t conf = {
.sda_io_num = [1],
.scl_io_num = [2],
.mode = I2C_MODE_MASTER
};SDA is pin 21 and SCL is pin 22 for the I2C master configuration.
Fill all three blanks to complete the I2C master initialization with correct pins and clock speed.
i2c_config_t conf = {
.sda_io_num = [1],
.scl_io_num = [2],
.master.clk_speed = [3]
};The SDA pin is 21, SCL pin is 22, and the clock speed is set to 100000 Hz (100 kHz standard speed).