lvgl / lvgl_esp32_drivers

Drivers for ESP32 to be used with LVGL
MIT License
325 stars 280 forks source link

[develop] ST7789 software reset doesn't work #167

Open C47D opened 2 years ago

C47D commented 2 years ago

Software reset doesn't seem to work when using the develop branch. To reproduce it you should enable software reset in the menuconfig and disable using hardware reset in the pin configuration menu,

C47D commented 2 years ago

Seems like that particular display driver doesn't work well with software resets https://github.com/Bodmer/TFT_eSPI/issues/322#issuecomment-481034553

slavendam commented 2 years ago

According to datasheet SWRST only resets registers where some settings are, but Frame memory with previous picture will remain. I've added "fillScreen(0x0000)" in init() function just before SWRST call to clear screen also during reset. This helps to not show previous picture after SWRST is done.