I bought a "TFT Display 2.4" inch LCD 240x320 SPI 3.3V 5V ILI9341 SD Slot for Arduino Pi ESP" (which I can convert into a touch controller if I know which XPT2046 chip I should buy). I don't know if they came in different sizes or if they are all the same. Sorry, but I'm a newbie).
Alright, I tried to use the ST7789_t3 library, but for the colours I have to use the ST7735_* commands from the ST7735 library. It's a bit confusing, but at least I know that the screen works with the ST7789 library.
What I don't understand is why the colours I declared in the code are appearing inverted.
I tried to use the tft.invertDisplay(true); command in void setup, but if I use it, the Teensy keeps connecting and disconnecting, and the sketch doesn't start.
So apparently my problem with the examples of the libraries was that I couldn't find a way to set them up correctly with my ST7789V.
I managed to launch the graphicstest.ino from the Adafruit ST7735 and ST7789 library without any issue.
The only thing left to fix was the inverted colours issue.
The tft.invertDisplay(true); command didn't work, so I had to edit the Adafruit_ST7789.cpp file in the C:\Users\XXX\Documents\Arduino\libraries\Adafruit_ST7735_and_ST7789_Library\.
Another solution, in case the INVOFF/INVON change doesn't make it work (or it changes back to the default settings in case the library gets an update) is to add this tft.invertDisplay(0); after tft.in(); in the sketch code you are using for your screen.