#author("2021-12-17T11:17:43+08:00","default:Admin","Admin") #author("2023-01-08T09:44:26+08:00","default:Admin","Admin") [[ESP32]] &color(red){※This article is based on esp-idf 4.0}; #contents * IO口引脚 [#oead9591] ESP32具有两个I2C,分别映射到的引脚为18 19 21 22。我们这里选择I2C0,也就是I2C_NUM_0,对应18 19号引脚。 ESP32具有两个I2C,分别映射到的引脚为18(SDA) 19(SCL) ; 21(SDA) 22(SCL)。我们这里选择I2C0,也就是I2C_NUM_0,对应18 19号引脚。 * 总线上拉使能 [#k452d205] enable * 总线速度 [#xc97e1fd] 100K * API的使用 [#rbcd3300] https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32/api-reference/peripherals/i2c.html?highlight=i2c_master_stop #hr(); コメント: #comment_kcaptcha