GPIO remapping issue (peripheral doesnt work on certain pins)
Posted: Thu Sep 07, 2017 8:21 am
Hi,
I have issue with GPIO pins remapping.
I tried official idf example of i2c peripheral on ESP32 DevKit:
https://github.com/espressif/esp-idf/tr ... herals/i2c
It works fine, but when I tried to change to another GPIO pin
(i.e:
in this section
I changed
19 to 35
)
I got next message on terminal window:
"i2c: E:/Projects/ESP32/esp-idf/components/driver/i2c.c:610 (i2c_set_pin):scl gpio number error[0m".
I noticed this problem at IO_pins 34, 35 (IO 12,13 also wouldnt work with i2c for some reason, nothing appear at log).
Please advice.
I have issue with GPIO pins remapping.
I tried official idf example of i2c peripheral on ESP32 DevKit:
https://github.com/espressif/esp-idf/tr ... herals/i2c
It works fine, but when I tried to change to another GPIO pin
(i.e:
in this section
Code: Select all
#define I2C_EXAMPLE_MASTER_SCL_IO 19 /*!< gpio number for I2C master clock */
#define I2C_EXAMPLE_MASTER_SDA_IO 18 /*!< gpio number for I2C master data */
19 to 35
)
I got next message on terminal window:
"i2c: E:/Projects/ESP32/esp-idf/components/driver/i2c.c:610 (i2c_set_pin):scl gpio number error[0m".
I noticed this problem at IO_pins 34, 35 (IO 12,13 also wouldnt work with i2c for some reason, nothing appear at log).
Please advice.