Can't seem to fint the I2C pins on the expansion board (using SiPy)
-
The problem is more or less stated in the title. Can anyone tell my what the I2C pins are called? Preferable both on the expansion board and on the SiPy? Really wanna understand it.
-
Thanks to Livius. That worked!
-
@Shaun
You have right@Lokefar look at pinout of Lopy it should be near same
https://docs.pycom.io/pycom_esp32/_downloads/lopy_pinout.pdf
-
Looks like the SDA, SCL and MOSI, MISO, CLK and RX0, TX0 and RX1, TX1 labels have all been removed in the latest drawings.
-
@Lokefar
you can start I2C on "any" pins
default are pins P9 (SDA) and P10 (SCL)
you can choose different by putting it in below code instead SDA SCL texti2c.init(mode, *, baudrate=100000, pins=(SDA, SCL))
more info here:
https://docs.pycom.io/pycom_esp32/library/machine.I2C.htmllook at pinout:
Sipy
https://docs.pycom.io/pycom_esp32/_downloads/Sipy_v01_1_pinout_rc.pdf
expansion
https://docs.pycom.io/pycom_esp32/_downloads/exp_v03_pinout_v13.pdf