Instaling lilygo T-Display-S3-Pro

I don’t understand how to make the t display s3 pro work with my code. If I use Lilygo’s own set up it works:
T-Display-S3-Pro GitHub
However, when I try to use the platformio + New Project I can’t work out how to add the board, even with Lilygo’s t-display-s3-pro.json file.

Any suggestions?
Yours Simon M

I don’t know what I did but using the following platformio.ini I got it to work:

; 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:t-display-s3-presp-wrover-kit]

;boards_dir = board
board = t-display-s3-pro

framework = arduino

platform = espressif32@6.3.0

board_build.partitions = huge_app.csv

build_flags = 
        ; Enable UARDUINO_USB_CDC_ON_BOOT will start printing and wait for terminal access during startup
        -DARDUINO_USB_CDC_ON_BOOT=1

        ; Enable UARDUINO_USB_CDC_ON_BOOT will turn off printing and will not block when using the battery
        ;-UARDUINO_USB_CDC_ON_BOOT

        ; TFT_eSPI warning elimination
        -DDISABLE_ALL_LIBRARY_WARNINGS

        ; ! Using T-Display-Pro V1.0 , uncomment use V1.1 ,
        ; ! The difference between V1.0 and V1.1 is the backlight driver.
        ; -DUSING_DISPLAY_PRO_V1

lib_deps = 
        lewisxhe/SensorLib @ ^0.1.4
        lewisxhe/XPowersLib @ ^0.2.1
        bxparks/AceButton @ ^1.10.1
        Wire
        SPI
        hideakitai/MPU9250 @ ^0.4.8
        electroniccats/MPU6050 @ ^1.0.0
        wollewald/ICM20948_WE@^1.1.5 ; ICM20948
        moononournation/GFX Library for Arduino @ ^1.3.7 ; Arduino_GFX_HelloWorld
        moononournation/GFX Library for Arduino @ ^1.3.7 ; Arduino_GFX_PDQgraphicstest
        moononournation/GFX Library for Arduino @ ^1.3.7 ; Arduino_GFX_LvglBenchmark
        https://github.com/mmMicky/TouchLib.git ; Arduino_GFX_LvglBenchmark

;upload_port  = COMxx
;monitor_port = COMxx

upload_speed  = 1500000
monitor_speed =  115200

This at least made the touch example work OK.
If someone could explain why please.