Gruß zurück, Du erinnerst mich daran, daß dies ein deutschsprachiges Forum ist. Als ich mit Arduino angefangen habe, las ich Beiträge aus Kanada und Neuseeland, da mußte man schon mal ein paar Stunden auf eine Antwort warten.
Da ich verschiedene Displays am Wickel habe, nutze ich die Setup270_ESP32_ST7796.h und wähle sie in User_Setup_Select.h aus:
// Only ONE line below should be uncommented to define your setup. Add extra lines and files as needed.
#include <User_Setups/Setup270_ESP32_ST7796.h> // Setup file for ESP32 configured for my ST7796 480x320
//#include <User_Setups/Setup202_ESP32-S3_ST7796.h> // Setup file for ESP32-S3 configured for my ST7796 480x320
//#include <User_Setups/Setup203_ESP32-S3_ST7796_Touch.h> // Setup file for ESP32-S3 configured for my ST7796 480x320
//#include <User_Setups/Setup220_ESP32_ST7735.h> // Setup file for ESP32 configured for my ST7735
//#include <User_Setups/Setup220_ESP32-S3_ST7735.h> // Setup file for ESP32 configured for my ST7735
//#include <User_Setup.h> // Default setup is root library folder
Aber wie man es macht, ist Geschmackssache ![]()
Der Touch-Chip nutzt ebenfalls den SPI-Bus, also MOSI, MISO und SCLK. Nur der CS-Pin muß ein anderer, frei wählbarer GPIO sein. In meiner Setup270_ESP32_ST7796.h:
#define TOUCH_CS 22 // Chip select pin (T_CS) of touch screen
Eventuell hilft Dir dieses Bild:
