Files
TFT_eSPI/docs/PlatformIO/Configuring options.txt
T

52 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-01-29 16:43:42 +00:00
;PlatformIO User notes:
2018-02-24 19:02:20 +00:00
2022-01-29 16:43:42 +00:00
;It is possible to load settings from the calling program rather than modifying
;the library for each project by modifying the "platformio.ini" file.
2018-02-24 19:02:20 +00:00
2022-01-29 16:43:42 +00:00
;The User_Setup_Select.h file will not load the user setting header files if
;USER_SETUP_LOADED is defined.
2018-02-24 19:02:20 +00:00
2022-01-29 16:43:42 +00:00
;Instead of using #define, use the -D prefix, for example:
; 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
2018-02-24 19:02:20 +00:00
[env:esp32dev]
2022-01-29 16:43:42 +00:00
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
2018-02-24 19:02:20 +00:00
board = esp32dev
framework = arduino
2022-01-29 16:43:42 +00:00
lib_deps = bodmer/TFT_eSPI@^2.4.31
2018-02-24 19:02:20 +00:00
build_flags =
-Os
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
-DUSER_SETUP_LOADED=1
2022-01-29 16:43:42 +00:00
; Define the TFT driver, pins etc here:
-DST7789_DRIVER=1
2018-02-24 19:02:20 +00:00
-DTFT_WIDTH=128
-DTFT_HEIGHT=160
-DTFT_MISO=19
-DTFT_MOSI=23
-DTFT_SCLK=18
-DTFT_CS=5
-DTFT_DC=19
2022-01-29 16:43:42 +00:00
-DTFT_RST=4
;-DTFT_BL=21
;-DTOUCH_CS=22
2018-02-24 19:02:20 +00:00
-DLOAD_GLCD=1
2022-01-29 16:43:42 +00:00
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
2018-02-24 19:02:20 +00:00
-DSPI_FREQUENCY=27000000