Code: Select all
ESP_ERROR_CHECK(i2c_master_cmd_begin(I2C_MASTER_NUM, handle_i2c, pdMS_TO_TICKS(I2C_TIMEOUT_MS)));Code: Select all
ESP_ERROR_CHECK(i2c_master_cmd_begin(I2C_MASTER_NUM, handle_i2c, pdMS_TO_TICKS(I2C_TIMEOUT_MS)));With I2C it's actually really simple: You prepare a minimal I2C tranasction of START, slave address, STOP.; read or write doesn't really matter much.probing the I2C slave, though I'm not sure exactly how to go about that.
Users browsing this forum: Amazon [Bot], Qwantbot, Semrush [Bot] and 19 guests