Skip to content

hyhkjiy/esp-idf-st7789

 
 

Repository files navigation

esp-idf-st7789

ST7789 Driver for esp-idf

You have to set this config value with menuconfig.
CONFIG_WIDTH
CONFIG_HEIGHT
CONFIG_OFFSETX
CONFIG_OFFSETY
CONFIG_CS_GPIO
CONFIG_DC_GPIO
CONFIG_RESET_GPIO
CONFIG_BL_GPIO

There is 2 kinds of marking.
st7789-back

git clone https://github.com/nopnop2002/esp-idf-st7789
cd esp-idf-st7789/
make menuconfig
make flash

st7789-config-1 st7789-config-2

MOSI is GPIO23.
SCLK is GPIO18.
MISO is not use.


st7789-1 st7789-2 st7789-3 st7789-4 st7789-5 st7789-6 st7789-7 st7789-8 st7789-9 st7789-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");
uint16_t color = RED;
lcdDrawString(&dev, yourFont, x, y, ascii, color);

About

ST7789 Driver for esp-idf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.4%
  • Makefile 1.1%
  • CMake 0.5%