mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-08 15:14:43 +02:00
Update PlatformIO example ini file
This commit is contained in:
@@ -47,7 +47,7 @@ VSPI not defined
|
|||||||
|
|
||||||
ESP32 C3:
|
ESP32 C3:
|
||||||
FSPI = 0, uses SPI2 ???? To be checked
|
FSPI = 0, uses SPI2 ???? To be checked
|
||||||
HSPI = 1, uses SPI3 ???? To be checked
|
HSPI = 1, uses SPI3 ???? To be checked (General purpose SPI)
|
||||||
VSPI not defined
|
VSPI not defined
|
||||||
|
|
||||||
For ESP32/S2/C3:
|
For ESP32/S2/C3:
|
||||||
|
@@ -1,24 +1,36 @@
|
|||||||
PlatformIO User notes:
|
;PlatformIO User notes:
|
||||||
|
|
||||||
It is possible to load settings from the calling program rather than modifying
|
;It is possible to load settings from the calling program rather than modifying
|
||||||
the library for each project by modifying the "platformio.ini" file.
|
;the library for each project by modifying the "platformio.ini" file.
|
||||||
|
|
||||||
The User_Setup_Select.h file will not load the user setting header files if
|
;The User_Setup_Select.h file will not load the user setting header files if
|
||||||
USER_SETUP_LOADED is defined.
|
;USER_SETUP_LOADED is defined.
|
||||||
|
|
||||||
Instead of using #define, use the -D prefix, for example:
|
;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
|
||||||
|
|
||||||
[env:esp32dev]
|
[env:esp32dev]
|
||||||
platform = https://github.com/platformio/platform-espressif32.git#feature/stage
|
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
|
||||||
board = esp32dev
|
board = esp32dev
|
||||||
framework = arduino
|
framework = arduino
|
||||||
upload_port = ESP32-Test-2481CE9C.local
|
lib_deps = bodmer/TFT_eSPI@^2.4.31
|
||||||
|
|
||||||
build_flags =
|
build_flags =
|
||||||
-Os
|
-Os
|
||||||
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
|
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
|
||||||
-DUSER_SETUP_LOADED=1
|
-DUSER_SETUP_LOADED=1
|
||||||
-DILI9163_DRIVER=1
|
|
||||||
|
; Define the TFT driver, pins etc here:
|
||||||
|
-DST7789_DRIVER=1
|
||||||
-DTFT_WIDTH=128
|
-DTFT_WIDTH=128
|
||||||
-DTFT_HEIGHT=160
|
-DTFT_HEIGHT=160
|
||||||
-DTFT_MISO=19
|
-DTFT_MISO=19
|
||||||
@@ -26,8 +38,15 @@ build_flags =
|
|||||||
-DTFT_SCLK=18
|
-DTFT_SCLK=18
|
||||||
-DTFT_CS=5
|
-DTFT_CS=5
|
||||||
-DTFT_DC=19
|
-DTFT_DC=19
|
||||||
-DTFT_RST=-1
|
-DTFT_RST=4
|
||||||
|
;-DTFT_BL=21
|
||||||
|
;-DTOUCH_CS=22
|
||||||
-DLOAD_GLCD=1
|
-DLOAD_GLCD=1
|
||||||
|
-DLOAD_FONT2=1
|
||||||
|
-DLOAD_FONT4=1
|
||||||
|
-DLOAD_FONT6=1
|
||||||
|
-DLOAD_FONT7=1
|
||||||
|
-DLOAD_FONT8=1
|
||||||
|
-DLOAD_GFXFF=1
|
||||||
|
-DSMOOTH_FONT=1
|
||||||
-DSPI_FREQUENCY=27000000
|
-DSPI_FREQUENCY=27000000
|
||||||
|
|
||||||
lib_extra_dirs = B:\Projects\ESP32\ESP32Lib
|
|
||||||
|
Reference in New Issue
Block a user