ili9XXX.py modified driver : ok only with preallocated SPI on ESP32

Bonjour ,
i have no ili9341 but st7789 tft.
so i modified ili9XXX.py driver for st7789 but the issue
is i must allocated SPI before call the driver.

it’s work fine on ESP32 with lvgl but it’s not clean.

how to debug this issue

some explored ways facing wall !

please help

Thanks and Regards

[ from this topic : " Trying to use external SPI device + lvgl" ]