Skip to content

Testing a cheap and fast AliExpress 1.9" IPS Display with ESP32 Wemos lite and TFT_eSPI by Bodmer

License

Notifications You must be signed in to change notification settings

mboehmerm/IPS-Display-ST7789-170x320

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPS Display ST7789 1.9" 170x320

Aliexpress Display ~3,50€, tested with a ESP32 Wemos lite, Arduino IDE 2.3.2 and TFT_eSPI 2.5.43.

Arduino IDE Board : "WEMOS LOLIN32 Lite"

The display works stable with 80MHz even with a 50cm long cable between ESP32 and display.

The Display draws about 47mA, of which 41mA is the backlight, if pin BLK is connected to 3.3V.

Speed (40MHz/80MHz) : Bouncy_Circles 45/85fps, boing_ball 105/135fps, Sprite_Rotating 153/305fps.

adabot

Display_170x320

The display is easy to read from different angles.

angle

Arduino\TFT_graphicstest_PDQ.ino ( modified )

graphicstest

Arduino\Bouncy_Circles.ino and Arduino\SpriteRotatingCube.ino and Arduino\boing_ball.ino ( not modified )

Bouncy_Circles

Arduino\show_pictures.ino

show_pictures

Connections for Wemos Lolin32 lite

GPIO TFT Description
23 SDA MOSI Hardware SPI
18 SCK CLK Hardware SPI
5 CS CS
17 DC DC
EN RES Reset
BLK 3.3V ( or PWM-Pin )
VCC 3.3V
GND GND

Configure the library TFT_eSPI

Edit the file Arduino\libraries\TFT_eSPI\User_Setup_Select.h

// Only **ONE** line below should be uncommented to define your setup.

//#include <User_Setup.h>                // Default setup is root library folder

// new setup file in folder Arduino/libraries, so updates will not overwrite your setups.
#include <../Setup407_ST7789_320x170.h>  // new setup file for  ST7789 170x320 

Create a new file Arduino\libraries\Setup407_ST7789_320x170.h

#define USER_SETUP_ID 407

// Driver
#define ST7789_DRIVER       // Configure all registers
#define TFT_WIDTH  170
#define TFT_HEIGHT 320
#define TFT_INVERSION_ON
#define TFT_BACKLIGHT_ON 1

// Pins
#define TFT_BL     -1      // 16  // LED backlight
#define TFT_MISO   -1      // Not connected
#define TFT_MOSI   23
#define TFT_SCLK   18
#define TFT_CS      5 
#define TFT_DC     17
#define TFT_RST    -1      // Set TFT_RST to -1 if display RESET is connected to ESP32 board EN

// Fonts
#define LOAD_GLCD
#define LOAD_FONT2
#define LOAD_FONT4
#define LOAD_FONT6
#define LOAD_FONT7
#define LOAD_FONT8
//#define LOAD_FONT8N
#define LOAD_GFXFF
#define SMOOTH_FONT

// Other options
//#define SPI_READ_FREQUENCY    20000000
//#define SPI_FREQUENCY         40000000
#define SPI_FREQUENCY         80000000

Test programs

All files can be found above in the folder Arduino.

About

Testing a cheap and fast AliExpress 1.9" IPS Display with ESP32 Wemos lite and TFT_eSPI by Bodmer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published