Skip to content

Example code for driving M5StickC-Plus ST7789V2 display using ESP-IDF's SPI driver.

License

Notifications You must be signed in to change notification settings

taitleaney/esp-idf-m5stickC-Plus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esp-idf-m5stickC-Plus

Example code for driving M5StickC-Plus ST7789V2 display using ESP-IDF's SPI driver.

M5StickC-Plus-1

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.

Graphic support

M5StickC-Plus-2

M5StickC-Plus-3

M5StickC-Plus-4

Fonts support

It's possible to text rotation and invert.
M5StickC-Plus-5

M5StickC-Plus-6

M5StickC-Plus-7

It's possible to indicate more than one font at the same time.
M5StickC-Plus-11

Image support

BMP file
M5StickC-Plus-8 JPEG file
M5StickC-Plus-9 PNG file
M5StickC-Plus-10

Font File

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);

About

Example code for driving M5StickC-Plus ST7789V2 display using ESP-IDF's SPI driver.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.1%
  • Other 0.9%