Code Monkey home page Code Monkey logo

esp-idf-ili9340's Introduction

esp-idf-ili9340

SPI TFT 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
git clone https://github.com/nopnop2002/esp-idf-ili9340
cd esp-idf-ili9340/
make menuconfig
make flash

config

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


Tested TFT

M5Stack
2.8" ILI9341 320x240
2.4" ILI9341 320x240
2.2" ILI9340 320x240
2.0" ILI9225 176x220
2.0" ILI9225G 176x220
1.8" ST7735 128x160
1.77" ST7735 128x160
1.44" ST7735 128x128
0.96" ST7735 80x160

spi-tft


M5Stack

config_M5Stack

M5Stick-1 M5Stack-2 M5Stick-3 M5Stick-4 M5Stick-5 M5Stick-6 M5Stick-7 M5Stick-8 M5Stick-9 M5Stick-10 M5Stick-11 M5Stack-13


2.8" ILI9341 320x240

2.4" ILI9341 320x240

config_2-8_240x320

Left:2.8" Right:2.4" screen_2-8_240x320


2.2" ILI9340 320x240

config_2-2_240x320

Left:2.2" Right:2.4" screen_2-2_240x320


2.0" ILI9225 176x220

config_2-0_176x220

Left:2.2" Right:2.0" screen_2-0_176x220


2.0" ILI9225G 176x220

config_2-0_176x220-11

Left:2.0" 9225G Right:2.0" 9225 screen_2-0_176x220-11


1.8" ST7735 128x160

config_1-8_128x160-1

Left:1.8" Right:2.0" screen_1-8_128x160-2


1.8" ST7735 128x160

config_1-8_128x160-11 screen_1-8_128x160-12 screen_1-8_128x160-13


1.8" ST7735 128x160

config_1-8_128x160-21 screen_1-8_128x160-21 screen_1-8_128x160-31


1.77" ST7735 128x160

config_1-77_128x160

Left:1.77" Right:1.8" screen_1-77_128x160


1.44" ST7735 128x128

config_1-8_128x160-1

Left:1.44" Right:2.0" screen_1-8_128x160-2


1.44" ST7735 128x128

config_1-44_128x128-11 screen_1-44_128x128-12 screen_1-44_128x128-13


0.96" ST7735 80x160

config_0-96_80x160-1

Left:1.44" Right:0.96" screen_0-96_80x160-3


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

esp-idf-ili9340's People

Contributors

botbench avatar nopnop2002 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.