From faff5fb27e8ade7ec86da9b00e102db14c2c4d1a Mon Sep 17 00:00:00 2001 From: philou3 <106430774+philou3@users.noreply.github.com> Date: Thu, 26 Dec 2024 11:00:18 +0100 Subject: [PATCH 1/4] =?UTF-8?q?validation=20mesure=20de=20co=C2=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- User_Setups/Setup200_GC9A01.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/User_Setups/Setup200_GC9A01.h b/User_Setups/Setup200_GC9A01.h index aa34c877..737f6771 100644 --- a/User_Setups/Setup200_GC9A01.h +++ b/User_Setups/Setup200_GC9A01.h @@ -6,11 +6,11 @@ // For ESP32 Dev board (only tested with GC9A01 display) // The hardware SPI can be mapped to any pins -#define TFT_MOSI 15 // In some display driver board, it might be written as "SDA" and so on. -#define TFT_SCLK 14 +#define TFT_MOSI 9 // In some display driver board, it might be written as "SDA" and so on. +#define TFT_SCLK 11 #define TFT_CS 5 // Chip select control pin -#define TFT_DC 27 // Data Command control pin -#define TFT_RST 33 // Reset pin (could connect to Arduino RESET pin) +#define TFT_DC 7 // Data Command control pin +#define TFT_RST 3 // Reset pin (could connect to Arduino RESET pin) #define TFT_BL 22 // LED back-light From c9c44fbcc236a11f61acd46e08ccdf7d7e84f772 Mon Sep 17 00:00:00 2001 From: philou3 <106430774+philou3@users.noreply.github.com> Date: Thu, 26 Dec 2024 12:21:00 +0100 Subject: [PATCH 2/4] Update TFT_eSPI_ESP32.c --- Processors/TFT_eSPI_ESP32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Processors/TFT_eSPI_ESP32.c b/Processors/TFT_eSPI_ESP32.c index faf30343..739c9b92 100644 --- a/Processors/TFT_eSPI_ESP32.c +++ b/Processors/TFT_eSPI_ESP32.c @@ -802,7 +802,7 @@ bool TFT_eSPI::initDMA(bool ctrl_cs) .max_transfer_sz = TFT_WIDTH * TFT_HEIGHT * 2 + 8, // TFT screen size .flags = 0, .intr_flags = 0 - }; + } int8_t pin = -1; if (ctrl_cs) pin = TFT_CS; @@ -826,7 +826,7 @@ bool TFT_eSPI::initDMA(bool ctrl_cs) #else .post_cb = dma_end_callback #endif - }; + } ret = spi_bus_initialize(spi_host, &buscfg, DMA_CHANNEL); ESP_ERROR_CHECK(ret); ret = spi_bus_add_device(spi_host, &devcfg, &dmaHAL); From 5a51aeeb5d07fe57421fbd2b357bbf9726e93a62 Mon Sep 17 00:00:00 2001 From: philou3 <106430774+philou3@users.noreply.github.com> Date: Thu, 26 Dec 2024 12:33:44 +0100 Subject: [PATCH 3/4] Update TFT_eSPI.cpp --- TFT_eSPI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index d537faeb..be2f89b6 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -800,10 +800,10 @@ void TFT_eSPI::init(uint8_t tc) } -/*************************************************************************************** +/* ************************************************************************************** ** Function name: setRotation ** Description: rotate the screen orientation m = 0-3 or 4-7 for BMP drawing -***************************************************************************************/ +************************************************************************************** */ void TFT_eSPI::setRotation(uint8_t m) { From 93dc02f7b554a018ac73dc9dce74f279be926ff1 Mon Sep 17 00:00:00 2001 From: philou3 <106430774+philou3@users.noreply.github.com> Date: Thu, 26 Dec 2024 12:37:49 +0100 Subject: [PATCH 4/4] Update User_Setup.h --- User_Setup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/User_Setup.h b/User_Setup.h index a0123318..6a00327a 100644 --- a/User_Setup.h +++ b/User_Setup.h @@ -42,7 +42,7 @@ //#define RPI_DISPLAY_TYPE // 20MHz maximum SPI // Only define one driver, the other ones must be commented out -#define ILI9341_DRIVER // Generic driver for common displays +//#define ILI9341_DRIVER // Generic driver for common displays //#define ILI9341_2_DRIVER // Alternative ILI9341 driver, see https://github.com/Bodmer/TFT_eSPI/issues/1172 //#define ST7735_DRIVER // Define additional parameters below for this display //#define ILI9163_DRIVER // Define additional parameters below for this display @@ -62,7 +62,7 @@ //#define SSD1963_800_DRIVER //#define SSD1963_800ALT_DRIVER //#define ILI9225_DRIVER -//#define GC9A01_DRIVER +#define GC9A01_DRIVER // Some displays support SPI reads via the MISO pin, other displays have a single // bi-directional SDA pin and the library will try to read this via the MOSI line.