nopnop2002 / esp-idf-st7789

ST7789 Driver for esp-idf
MIT License
234 stars 56 forks source link

Update st7789.c #24

Closed gaojulong closed 2 years ago

gaojulong commented 2 years ago

针对ESP32-C3:添加IO18和IO19引脚判断 The following defines are used to disable USB JTAG when pins 18 and pins 19 are set to be used as GPIO.

nopnop2002 commented 2 years ago

Thank you for reporting.

I found that gpio_pad_select_gpio changed to gpio_reset_pin. https://github.com/espressif/esp-idf/blob/master/examples/get-started/blink/main/blink_example_main.c#L63

With this, both GPIO18 and GPIO19 work correctly.

Please try with the latest version.