I tried the method mentioned in other thread
Revert the stm32duino back to 1.9.0, the display is working now!!!TFTLCDCyg wrote: ↑Wed Jun 30, 2021 3:52 pm Try removing the 2.0.0 kernel first and then installing the 1.9.0 kernel, with this reference:
https://github.com/stm32duino/BoardMana ... index.json
With all the different method to call the library, it works without problem
Code: Select all
#define TFT_CS PA4//8
#define TFT_DC PB1//9
#define TFT_RST PB0//10
#define TFT_MOSI PA7//PB15//11
#define TFT_SCLK PA5//PB13//13
//SPIClass SPI_1(PA7, PA6, PA5);
//SPIClass SPI_2(PB15, PB14, PB13);
//Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST);
//Adafruit_ST7789 tft = Adafruit_ST7789(&SPI_1, TFT_CS, TFT_DC, TFT_RST);
Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);