From 02202e1361e28a48ddb4589a8cc7729c08ec83c2 Mon Sep 17 00:00:00 2001 From: elmo128 <60213508+elmo128@users.noreply.github.com> Date: Fri, 22 Sep 2023 01:36:10 +0200 Subject: [PATCH] update cam display --- .../User_Setups/Setup212_ESP32Cam_DongleDisplay.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/TFT_eSPI/User_Setups/Setup212_ESP32Cam_DongleDisplay.h b/lib/TFT_eSPI/User_Setups/Setup212_ESP32Cam_DongleDisplay.h index 1137fe2..f248b13 100644 --- a/lib/TFT_eSPI/User_Setups/Setup212_ESP32Cam_DongleDisplay.h +++ b/lib/TFT_eSPI/User_Setups/Setup212_ESP32Cam_DongleDisplay.h @@ -26,9 +26,13 @@ #define TFT_MISO 2 #define TFT_MOSI 15 #define TFT_SCLK 14 -#define TFT_CS 12 -#define TFT_DC 16 -#define TFT_RST 4 // Connect reset to ensure display initialises +#define TFT_CS 12 +#define TFT_DC 0 +#define TFT_RST 22 // Connect reset to ensure display initialises (not really required). + +#if (TFT_MISO == 16) || (TFT_MOSI == 16)|| (TFT_SCLK == 16)|| (TFT_CS == 16)|| (TFT_DC == 16)|| (TFT_RST == 16) +#warning: Using GPIO16 for display might crash on initializing the display! +#endif #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters