Skip to content

Instantly share code, notes, and snippets.

@derlaft
Created January 19, 2022 00:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derlaft/3a61b9545ea012617a7f7992869c8d12 to your computer and use it in GitHub Desktop.
Save derlaft/3a61b9545ea012617a7f7992869c8d12 to your computer and use it in GitHub Desktop.
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:wt32-sc01]
platform = espressif32
board = esp32dev
framework = arduino
monitor_port = /dev/ttyUSB*
monitor_speed = 115200
build_flags =
-D USER_CONFIG_LOADED
-D USER_CONFIG_INC_FILE
-D USER_CONFIG_INC_FNAME=\"../configs/esp-tftespi-default-ft6206.h\"
# -D USER_CONFIG_INC_FNAME=\"../configs/esp-tftespi-default-notouch.h\"
# load graphical fonts
-DLOAD_GLCD
-DLOAD_FONT2
-DLOAD_FONT4
-DLOAD_FONT6
-DLOAD_FONT7
-DLOAD_FONT8
-DLOAD_GFXFF
-DSMOOTH_FONT
# select TFT driver
-DUSER_SETUP_LOADED=1
-DST7796_DRIVER=1
# enable HSPI port for TFT
-DUSE_HSPI_PORT=1
# configure TFT pins
-DTFT_MISO=12
-DTFT_MOSI=13
-DTFT_SCLK=14
-DTFT_CS=15
-DTFT_DC=21
-DTFT_RST=22
# enable backlight
-DTFT_BACKLIGHT_ON=HIGH
-DTFT_BL=23
lib_deps =
impulseadventure/GUIslice@^0.17.0
bodmer/TFT_eSPI@^2.4.25
adafruit/Adafruit FT6206 Library@^1.0.6
adafruit/Adafruit BusIO@^1.10.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment