From 16eefd6ada3b35b8337c78d084edd5611f1063d6 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Sat, 26 Dec 2020 16:34:11 +0000 Subject: [PATCH 1/2] Update Setup23_TTGO_TM.h --- User_Setups/Setup23_TTGO_TM.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/User_Setups/Setup23_TTGO_TM.h b/User_Setups/Setup23_TTGO_TM.h index 58468d5..b8e3a55 100644 --- a/User_Setups/Setup23_TTGO_TM.h +++ b/User_Setups/Setup23_TTGO_TM.h @@ -20,6 +20,10 @@ //#define TFT_RGB_ORDER TFT_RGB // Colour order Red-Green-Blue #define TFT_RGB_ORDER TFT_BGR // Colour order Blue-Green-Red +// Black and white swap option +//#define TFT_INVERSION_ON +#define TFT_INVERSION_OFF + #define LOAD_GLCD #define LOAD_FONT2 #define LOAD_FONT4 From a4e94634a6c0bd39f1373438ee3f2a33c173c3d2 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Mon, 28 Dec 2020 01:03:56 +0000 Subject: [PATCH 2/2] Update TFT_eSPI_STM32.c --- Processors/TFT_eSPI_STM32.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Processors/TFT_eSPI_STM32.c b/Processors/TFT_eSPI_STM32.c index a9951dd..7a762c2 100644 --- a/Processors/TFT_eSPI_STM32.c +++ b/Processors/TFT_eSPI_STM32.c @@ -594,8 +594,10 @@ bool TFT_eSPI::initDMA(bool ctrl_cs) ** Function name: initDMA ** Description: Initialise the DMA engine - returns true if init OK ***************************************************************************************/ -bool TFT_eSPI::initDMA(void) +bool TFT_eSPI::initDMA(bool ctrl_cs) { + ctrl_cs = ctrl_cs; // Not used for STM32, so stop compiler warning + __HAL_RCC_DMA1_CLK_ENABLE(); // Enable DMA1 clock dmaHal.Init.Mode = DMA_NORMAL; //DMA_CIRCULAR; // // Normal = send buffer once