esp32c3 can't use pin18 pin19 as i2c?
Posted: Tue Jun 07, 2022 1:21 pm
i use the latest fireware 1.18 for esp32 c3,but i found that pin 18 19 can't be used as i2c scl sda pins
i try use pin4 pin5 or others pins ,they work normally
and i try to use arduino i2c pin 18 19 work normally,too
here is my codes:
the result is []
can't found i2c address
so why can't i use pin 18 19 as i2c pins?can i solve this problem by making fireware by myself? thanks a lot!!!
i try use pin4 pin5 or others pins ,they work normally
and i try to use arduino i2c pin 18 19 work normally,too
here is my codes:
Code: Select all
import utime
from machine import Pin, SoftI2C
i2c = SoftI2C(scl=Pin(19), sda=Pin(18))
print(i2c.scan())
can't found i2c address
so why can't i use pin 18 19 as i2c pins?can i solve this problem by making fireware by myself? thanks a lot!!!