Bodmer / TJpg_Decoder

Jpeg decoder library based on Tiny JPEG Decompressor
Other
222 stars 42 forks source link

SD.begin() breaks Touch #73

Open sisvpfis opened 6 months ago

sisvpfis commented 6 months ago

Hello Bodmer,

I am using an ESP32/TFT/SD ESP32_3248S035R AllInOne Hardware where I can use SD or Touch but not both together. As soon as I integrate SD, touch stops working independet from which one is initialized first (SD/touch). I think the issue may be lying somewhere in the multiple usage of spi for Touch/SD/TFT but could'n find the problem itself. I think the different SPI parts should use different/own SPI config/frequency. As soon as I remove the SD.begin() touch works again. Using Framework 6.4.0 for the ESP32.

I use this configuration:

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
board_build.flash_mode = dio
board_build.f_flash = 80000000L
board_build.speed = 921600
lib_deps = 
    bodmer/TFT_eSPI@^2.4.79
    adafruit/Adafruit NeoPixel@^1.10.7
    bodmer/TFT_Touch@^0.3#
    bodmer/TJpg_Decoder@^1.1.0
    wnatth3/WiFiManager@^2.0.16-rc.2
build_flags = 
    -Ofast
    -D TFT_PANEL_ORDER_RGB
    -D ESP32_3248S035R

ESP32-3248S035-LCM-V1 1 ESP32-3248S035-MCU-V1 1

ESP32-WROOM-1 Pin definition