ESP32

※This article is based on esp-idf 4.0

IO口引脚 [edit]

ESP32具有两个I2C,分别映射到的引脚为18 19 21 22。我们这里选择I2C0,也就是I2C_NUM_0,对应18 19号引脚。

总线上拉使能 [edit]

enable

总线速度 [edit]

100K

API的使用 [edit]

https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32/api-reference/peripherals/i2c.html?highlight=i2c_master_stop

コメント:



(画像の文字列を入力して下さい)

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS