I have an example using MicroPython before, but using ESP32, they are all driven by the built-in SPI module of MicroPython, you should modify the pins slightly and it should work fine

https://github.com/lewisxhe/mPython_ST7789