Screen stays blank no matter what - only backlights are on. The screen is GMT020-02-7P 2'0 inches with only SDA output (MOSI only i presume). I rechecked wiring many times and i am confident in it. With adafruit gfx library the screen works fine so it turns out i am missing something.
The User_Setup.h is:
yeah, it is exactly the same board. Not sure if other c3 supermini's exist. But i have tried this layout and it didnt work aswell. Plus, i only have SDA which i presume means that only MOSI avalable. I simply have no pin to attach MISO
This topic might be of your interest. Maybe a solution, maybe not, but at least one person that claims to have success and one that claims to be a representative of the manufacturer...
using a ESP32-C3-MINI-1 connected a Waveshare General 2inch LCD Display Module IPS Screen 240×320 ST7789 using TFT_eSPI library example TFT_Print_Test
the Arduino\libraries\TFT_eSPI\User_Setup.h file
// TFT_eSPI setup.h file for ESP32-C3-MINI-1 Module
// RP2040 Waveshare General 2inch LCD Display Module IPS Screen 240×320 ST7789
#define USER_SETUP_INFO "User_Setup"
#define ST7789_DRIVER // Full configuration option, define additional parameters below for this display
// For ST7735, ST7789 and ILI9341 ONLY, define the colour order IF the blue and red are swapped on your display
// Try ONE option at a time to find the correct colour order for your display
// #define TFT_RGB_ORDER TFT_RGB // Colour order Red-Green-Blue
// #define TFT_RGB_ORDER TFT_BGR // Colour order Blue-Green-Red
// For ST7789, ST7735, ILI9163 and GC9A01 ONLY, define the pixel width and height in portrait orientation
#define TFT_WIDTH 240 // ST7789 240 x 240 and 240 x 320
#define TFT_HEIGHT 320 // ST7789 240 x 320
// If colours are inverted (white shows as black) then uncomment one of the next
// 2 lines try both options, one of the options should correct the inversion.
// #define TFT_INVERSION_ON
// #define TFT_INVERSION_OFF
#define TFT_CS 7 // RESP32-C3-MINI-1 Module
#define TFT_MOSI 6
#define TFT_SCLK 4
#define TFT_MISO 5
#define TFT_DC 8
#define TFT_RST 10
#define LOAD_GLCD
#define LOAD_FONT2
#define LOAD_FONT4
#define LOAD_FONT6
#define LOAD_FONT7
#define LOAD_FONT8
#define LOAD_GFXFF
#define SMOOTH_FONT
#define SPI_FREQUENCY 10000000
#define SPI_TOUCH_FREQUENCY 2500000