platformIO fiddle

I fiddle a bit with the ESP32-Wover-Kid 4.1
and platformio.ini

it works like this

[env:esp-wrover-kit]
platform = espressif32
board = esp-wrover-kit
framework = arduino
monitor_port = COM11
monitor_speed = 115200
upload_port = COM11
lib_deps = Bodmer/TFT_eSPI

but not with this

[platformio]
src_dir = .
default_envs=ESP32_Gauge

[env]
monitor_port = COM11
monitor_speed = 115200
upload_port = COM11
lib_deps = Bodmer/TFT_eSPI
build_flags =
	-D TFT_BL=5

[env:ESP32_Gauge]
platform = espressif32
board = esp-wrover-kit
framework = arduino

what I#m doing wrong

Why this and what is the problem? (I am missing an error message problem description here).

The TFT_eSPI library needs more macros than just TFT_BL.

; nowebflash
[platformio]
src_dir = .
default_envs = ESPWoverKid

[env]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps = wire
	bodmer/TFT_eSPI@^2.5.33
	git@github.com:Bodmer/TJpg_Decoder.git
monitor_filters = esp32_exception_decoder
monitor_speed=115200
upload_speed = 921600
board_build.partitions=min_spiffs.csv
build_flags =
	-D USER_SETUP_LOADED
	-D TFT_MISO=25
	-D TFT_MOSI=23
	-D TFT_SCLK=19
	-D TFT_CS=22
	-D USE_HSPI_PORT
	-D TFT_DC=21
	-D TFT_RST=18
	-D TFT_BL=5
#	-D TFT_BACKLIGHT_ON=HIGH
	-D SPI_FREQUENCY=55000000
	-D SPI_READ_FREQUENCY=20000000
	-D SPI_TOUCH_FREQUENCY=2500000
	-D LOAD_GLCD
	-D LOAD_FONT2
	-D LOAD_FONT4
	-D LOAD_FONT6
	-D LOAD_FONT7
	-D LOAD_FONT8
	-D LOAD_GFXFF
	-D SMOOTH_FONT=0
    -D LED_Red=0
	-D LED_Green=2
	-D LED_Blue=4

[env:ESPWoverKid]
build_flags =
	${env.build_flags}
	-DILI9341_DRIVER

Now it works I think my Problem was

-D TFT_BACKLIGHT_ON=HIGH