C’est gentil de me proposer ton aide 
Pas d’urgence évidemment, surtout pour la période festive qui arrive !
J’en profite pour souhaiter de bonnes fêtes de fin d’année

[Edit]
Bon, j’ai tenté quelques manip.
Création du fichier « viewe_UEDX80480070E.ini »:
;***************************************************;
; Viewe ESP32-S3 RGB IPS TFT 7.0" ;
; UEDX80480070-E ;
; - Custom esp32-s3 board ;
; - TFT ;
; - gt911 touch controller ;
;***************************************************;
[env:viewe_UEDX80480070]
extends = arduino_esp32s3_v2, flash_16mb
board = esp32-s3-devkitc-1
board_build.arduino.memory_type = qio_opi
build_flags =
${arduino_esp32s3_v2.build_flags}
${esp32s3.ps_ram}
-D HASP_MODEL="viewe_UEDX80480070"
;region -- display build options ------------------------
-D HASP_LV_USE_SW_ROTATE=0
-D TFT_BCKL=2
-D TFT_WIDTH=800
-D TFT_HEIGHT=480
-D LGFX_USE_V1=1
-D RGB_DRIVER=1
-D TFT_HSYNC_POLARITY=0
-D TFT_HSYNC_FRONT_PORCH=40
-D TFT_HSYNC_PULSE_WIDTH=48
-D TFT_HSYNC_BACK_PORCH=40
-D TFT_VSYNC_POLARITY=0
-D TFT_VSYNC_FRONT_PORCH=1
-D TFT_VSYNC_PULSE_WIDTH=31
-D TFT_VSYNC_BACK_PORCH=13
-D TFT_PCLK_ACTIVE_NEG=1
-D TFT_PREFER_SPEED=12000000
-D TFT_AUTO_FLUSH=1
-D TFT_PCLK_ACTIVE_NEG=1
; pin
-D TFT_B0=8
-D TFT_B1=3
-D TFT_B2=46
-D TFT_B3=9
-D TFT_B4=1
-D TFT_G0=5
-D TFT_G1=6
-D TFT_G2=7
-D TFT_G3=15
-D TFT_G4=16
-D TFT_G5=4
-D TFT_R0=45
-D TFT_R1=48
-D TFT_R2=47
-D TFT_R3=21
-D TFT_R4=14
-D TFT_DE=40
-D TFT_VSYNC=41
-D TFT_HSYNC=39
-D TFT_PCLK=42
;endregion
;region -- touch build options ---------------------------
-D HASP_USE_LGFX_TOUCH=1
-D TOUCH_WIDTH=800
-D TOUCH_HEIGHT=480
-D TOUCH_DRIVER=0x911
-D TOUCH_SCL=20
-D TOUCH_SDA=19
-D TOUCH_IRQ=-1
-D TOUCH_RST=-1
-D I2C_TOUCH_ADDRESS=0x14
-D I2C_TOUCH_FREQUENCY=400000
;endregion
lib_deps =
${arduino_esp32s3_v2.lib_deps}
${lovyangfx.lib_deps}
${elecrow-esp32-s3-tft.lib_deps}
board_build.partitions = user_setups/csv/default_16MB.csv
J’ai utilisé pour cela les différents exemples à ma disposition et la doc de l’écran avec laquelle j’ai pu corriger les Pins. Pas certain de l’adresse I2C cependant, et encore moins de la partie lib_deps …
Récupération du fichier « default_16MB.csv » (ici et installation sous « user_setups/csv/ »
Modification du fichier « platformio_override.ini »
; USAGE: Copy this file and rename it to platformio_override.ini
;
; The platformio_override.ini file is not overwritten or monitored by git
; ONLY edit platformio_override.ini to make local changes to the parameters
[platformio]
extra_configs =
; Uncomment or edit the lines to show more User Setups in the PIO sidebar
; user_setups/darwin/*.ini
; user_setups/esp32/*.ini
; user_setups/esp32s2/*.ini
user_setups/esp32s3/*.ini
; user_setups/linux/*.ini
; user_setups/stm32f4xx/*.ini
; user_setups/win32/*.ini
[override]
; -- Hasp config options --------------------------------------
build_flags =
; -- Uncomment the next line to use the file include/user_config_override.h settings
; -DUSE_CONFIG_OVERRIDE
;region -- Default Build Environments : Used when Build All ---
extra_default_envs =
; Uncomment specific environments or create extra (copy names from square brackets in user_setups/*/*.ini):
viewe_UEDX80480070
;endregion
;region -- Define your local COM ports for each environment ---
[env:d1-mini-esp32_ili9341]
monitor_port = COM6 ; Change to the correct port
upload_port = ${env:d1-mini-esp32_ili9341.monitor_port}
[env:esp32dev-mrb3511]
monitor_port = COM3 ; Change to the correct port
upload_port = ${env:esp32dev-mrb3511.monitor_port}
[env:az-touch-mod-esp32_ili9341_4MB]
upload_port = COM16
monitor_port = COM16
[env:az-touch-mod-esp32_ili9341_8MB]
upload_port = COM16
monitor_port = COM16
[env:d1-r32-unoshield_ili9486_adc]
monitor_port = COM5
upload_port = COM5
[env:d1-r32-unoshield_ili9341_adc]
;upload_protocol = espota ; Use ArduinoOTA after flashing over serial
;upload_port = 192.168.0.4 ; IP of the ESP
;upload_flags = --port=3232 ; --auth=haspadmin ; OTA password
monitor_port = COM5
upload_port = COM5
[env:esp32-one_st7796]
upload_port = COM6 ; Change to the correct port
monitor_port = COM6 ; Change to the correct port
[env:lolin-d32-pro_ili9341]
monitor_port = COM5 ; Change to the correct port
upload_port = ${env:lolin-d32-pro_ili9341.monitor_port}
;endregion
[env:ttgo_esp32_poe-ili9341]
monitor_port = COM9 ; Change to the correct port
;upload_port = ${env:ttgo_esp32_poe-ili9341.monitor_port}
;upload_port = 192.168.4.5 ; IP of the ESP
;upload_protocol = espota ; Use ArduinoOTA after flashing over serial
upload_flags = --port=3232 ; --auth=haspadmin ; OTA password
;region -- Custom Environment configuration example -----------------
[env:my_custom_build]
extends = arduino_esp32_v2, flash_4mb
board = nodemcu-32s
upload_port = COM12 ; To change the port, use platform_override.ini
monitor_port = COM12 ; To change the port, use platform_override.ini
debug_tool = esp-prog
debug_init_break = tbreak setup
build_flags =
${env.build_flags}
${esp32.build_flags}
;region -- TFT_eSPI build options -----------------------------------
${lcd.lolin24}
${esp32.vspi} ; Use VSPI hardware SPI bus
-D TFT_DC=5
-D TFT_CS=26
-D TFT_RST=-1 ; RST
-D TFT_BCKL=22 ; None, configurable via web UI (e.g. 21)
-D TOUCH_CS=17 ; (can also be 22 or 16)
; -- Options ----------------------------------------
-D HASP_USE_TELNET=1
;endregion
;endregion
Bon, je ne sais pas trop quoi faire avec les ports COM locaux ni avec tout ce fatras d’instruction, mais j’ai quand même tenté une compilation histoire de voir si ça donnait quelque chose :
============================================================= [FAILED] Took 228.61 seconds =============================================================
Environment Status Duration
------------------ -------- ------------
viewe_UEDX80480070 FAILED 00:03:48.611
======================================================== 1 failed, 0 succeeded in 00:03:48.611
Bon, rien d’étonnant, je ne m’attendais même pas à ce que la compilation commence 
Je vais éplucher les logs et voir si j’arrive à en tirer quelque chose par moi-même 
Mais peut-être pas aujourd’hui : y’a des préparatifs pour ce soir parait-il 