Example code for driving M5StickC-Plus ST7789V2 display using ESP-IDF's SPI driver.
git clone https://github.com/nopnop2002/esp-idf-m5stickC-Plus
cd esp-idf-m5stickC-Plus/
make menuconfig
make flash
*There is no MENU ITEM where this application is peculiar.
It's possible to text rotation and invert.
It's possible to indicate more than one font at the same time.
You can add your original font file.
The format of the font file is the FONTX format.
Your font file is put in font directory.
Your font file is uploaded to SPIFFS partition using meke flash.
Please refer this page about FONTX format.
FontxFile yourFont[2];
InitFontx(yourFont,"/spiffs/your_font_file_name","");
uint8_t ascii[10];
strcpy((char *)ascii, "MyFont");
lcdDrawString(dev, yourFont, x, y, ascii, color);