Created
September 20, 2025 11:45
-
-
Save HDRobotica/439978cff3be7a57c99ce1ebc7d191e8 to your computer and use it in GitHub Desktop.
Open TFT_ESPI User_Setup ind your library and change it with this code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define USER_SETUP_INFO "Custom 2.4\" ILI9341 + XPT2046" | |
| #define ILI9341_2_DRIVER | |
| #define TFT_WIDTH 240 | |
| #define TFT_HEIGHT 320 | |
| #define TFT_MOSI 13 | |
| #define TFT_MISO 12 | |
| #define TFT_SCLK 14 | |
| #define TFT_CS 15 | |
| #define TFT_DC 2 | |
| #define TFT_RST -1 | |
| #define TFT_BL 27 | |
| #define TFT_BACKLIGHT_ON HIGH | |
| #define TFT_INVERSION_ON // Für korrekte Helligkeit; wechsle zu OFF falls Farben invertiert | |
| #define TFT_RGB_ORDER TFT_BGR // BGR für dein Display | |
| #define SPI_FREQUENCY 27000000 // 27 MHz für Stabilität (verhindert Ausfälle) | |
| #define SPI_READ_FREQUENCY 20000000 | |
| // Touchscreen XPT2046 Pins (separate SPI-Bus) | |
| #define TOUCH_CS 33 | |
| #define TOUCH_IRQ 36 | |
| #define TOUCH_MOSI 32 | |
| #define TOUCH_MISO 39 | |
| #define TOUCH_CLK 25 | |
| #define SPI_TOUCH_FREQUENCY 2500000 // Standard für XPT2046 (nicht niedriger!) | |
| // Fonts | |
| #define LOAD_GLCD | |
| #define LOAD_FONT2 | |
| #define LOAD_FONT4 | |
| #define LOAD_FONT6 | |
| #define LOAD_FONT7 | |
| #define LOAD_FONT8 | |
| #define LOAD_GFXFF | |
| #define SMOOTH_FONT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment