TFT LCD model: MPI3501 3.5inch RPi Display Board: STM32L432KC Arduino IDE 1.8.13, Arduino Core STM32 v2.0.0 TFT_eSPI 2.3.70 Windows 10 RPi LCD pin Nucleo STM32L432 ----------- ---------------- 2 Vin 6 Gnd 18 RS/DC PA0 19 MOSI PB5 22 RST 21 MISO PA1 PB4 24 CS0(LCD) 23 SCK PA11 PB3 26 CS1(TS) PB0 User_Setup.h ------------ //#define STM32 #define RPI_DISPLAY_TYPE // 20MHz maximum SPI #define RPI_ILI9486_DRIVER // 20MHz maximum SPI #define TFT_SPI_PORT 1 // SPI port 1 maximum clock rate is 55MHz #define TFT_MOSI PB5 #define TFT_MISO PB4 #define TFT_SCLK PB3 #define TFT_CS PA11 // Nucleo-F767ZI equivalent of D5 #define TFT_DC PA0 // Nucleo-F767ZI equivalent of D6 #define TFT_RST PA1 // Nucleo-F767ZI equivalent of D7 #define TOUCH_CS PB0 // Chip select pin (T_CS) of touch screen #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:-. #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts #define SMOOTH_FONT #define SPI_READ_FREQUENCY 20000000 Arduino IDE Tools -> Board -------------------------- Board: Nucleo-32 Board part number: Nucleo L432KC USART support: Enabled(generic Serial) USB support: CDC(generic Serial supersede USART) USB speed: Low/full speed Optimize: smallest (-Os default) C runtime library: Newlib Nano(default) Upload method: Mass storage TFT_graphicstest_one_lib ------------------------ TFT_eSPI library test! (no #define STM32 - works ok) Benchmark Time (microseconds) Screen fill 4242221 Text 155574 Lines 2049246 Horiz/Vert Lines 354961 Rectangles (outline) 198774 Rectangles (filled) 10178974 Circles (filled) 1259090 Circles (outline) 711816 Triangles (outline) 429315 Triangles (filled) 3484931 Rounded rects (outline) 377747 Rounded rects (filled) 10398664 Done! TFT_eSPI library test! (#define STM32 - flickering white screen) Benchmark Time (microseconds) Screen fill 623490 Text 112541 Lines 1444095 Horiz/Vert Lines 68171 Rectangles (outline) 42612 Rectangles (filled) 1510816 Circles (filled) 562834 Circles (outline) 518628 Triangles (outline) 292286 Triangles (filled) 789089 Rounded rects (outline) 191213 Rounded rects (filled) 1662386 Done!