From d29170a77f2662a902e0e5174eb778aa4b076f6e Mon Sep 17 00:00:00 2001 From: fvanroie Date: Sun, 5 Apr 2020 11:40:14 +0200 Subject: [PATCH] Update platformio.ini --- platformio.ini | 9 +++++---- src/hasp_gui.cpp | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/platformio.ini b/platformio.ini index 5d017017..d8b12d25 100644 --- a/platformio.ini +++ b/platformio.ini @@ -218,13 +218,14 @@ build_flags = -D TFT_WIDTH=320 -D TFT_HEIGHT=480 -D USER_SETUP_LOADED=1 - -D ILI9488_DRIVER=1 + -D ST7796_DRIVER=1 ;3.95inch Arduino Display-UNO + ; -D ILI9486_DRIVER=1 ;3.5inch Arduino Display-UNO ${pins.vspi32} -D ESP32_PARALLEL=1 -D PSEUDO_8_BIT=1 - -D TFT_CS=34 ; Chip select control pin - -D TFT_DC=36 ; Data Command control pin - must use a pin in the range 0-31 - -D TFT_RST=38 ; Reset pin + -D TFT_CS=33 ; Chip select control pin + -D TFT_DC=15 ; Data Command control pin - must use a pin in the range 0-31 + -D TFT_RST=32 ; Reset pin -D TFT_WR=4 ; Write strobe control pin - must use a pin in the range 0-31 -D TFT_RD=2 -D TFT_D0=12 ; Must use pins in the range 0-31 for the data bus diff --git a/src/hasp_gui.cpp b/src/hasp_gui.cpp index 8e6028c3..929a8003 100644 --- a/src/hasp_gui.cpp +++ b/src/hasp_gui.cpp @@ -4,6 +4,7 @@ #include "lv_conf.h" #include "lvgl.h" #include "lv_fs_if.h" +#include "Touchscreen.h" // For Uno Shield or ADC based resistive touchscreens #include "TFT_eSPI.h" #include "lv_zifont.h" @@ -40,7 +41,6 @@ ESP8266WebServer * webClient; // for snatshot #endif #if defined(ARDUINO_ARCH_ESP32) -#include "Touchscreen.h" // For Uno Shield or ADC based resistive touchscreens #include WebServer * webClient; // for snatshot #endif // ESP32