Update platformio.ini

This commit is contained in:
fvanroie 2020-04-05 11:40:14 +02:00
parent 02b92200f6
commit d29170a77f
2 changed files with 6 additions and 5 deletions

View File

@ -218,13 +218,14 @@ build_flags =
-D TFT_WIDTH=320 -D TFT_WIDTH=320
-D TFT_HEIGHT=480 -D TFT_HEIGHT=480
-D USER_SETUP_LOADED=1 -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} ${pins.vspi32}
-D ESP32_PARALLEL=1 -D ESP32_PARALLEL=1
-D PSEUDO_8_BIT=1 -D PSEUDO_8_BIT=1
-D TFT_CS=34 ; Chip select control pin -D TFT_CS=33 ; Chip select control pin
-D TFT_DC=36 ; Data Command control pin - must use a pin in the range 0-31 -D TFT_DC=15 ; Data Command control pin - must use a pin in the range 0-31
-D TFT_RST=38 ; Reset pin -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_WR=4 ; Write strobe control pin - must use a pin in the range 0-31
-D TFT_RD=2 -D TFT_RD=2
-D TFT_D0=12 ; Must use pins in the range 0-31 for the data bus -D TFT_D0=12 ; Must use pins in the range 0-31 for the data bus

View File

@ -4,6 +4,7 @@
#include "lv_conf.h" #include "lv_conf.h"
#include "lvgl.h" #include "lvgl.h"
#include "lv_fs_if.h" #include "lv_fs_if.h"
#include "Touchscreen.h" // For Uno Shield or ADC based resistive touchscreens
#include "TFT_eSPI.h" #include "TFT_eSPI.h"
#include "lv_zifont.h" #include "lv_zifont.h"
@ -40,7 +41,6 @@ ESP8266WebServer * webClient; // for snatshot
#endif #endif
#if defined(ARDUINO_ARCH_ESP32) #if defined(ARDUINO_ARCH_ESP32)
#include "Touchscreen.h" // For Uno Shield or ADC based resistive touchscreens
#include <WebServer.h> #include <WebServer.h>
WebServer * webClient; // for snatshot WebServer * webClient; // for snatshot
#endif // ESP32 #endif // ESP32