Skip to content

XuBovey/MicroPython-ST7789

Repository files navigation

MicroPython-ST7789

删除了initb()和initb2()函数,用ST7789寄存器地址代替ST7735寄存器地址,修改inittr()函数。根据需要使用反色配置命令.

根据硬件修改了IO口配置。

适配屏幕:中景园1.3寸tft 240X240 1.54寸ftf 240x240

This is a modified version of boochow's ST7735.py ST7735 TFT LCD driver for MicroPython.

This version is for micropython-esp32.

A font file is necessary for displaying text (some font files are in boochow's repo).

Text nowrap option added(default: nowrap=False).

graphicstest.py is a sample code. I wrote this to make it similar to Adafruit's graphicstest sketch for Arduino.

If graphicstest.py doesn't work correctly. You can also change rgb(True) to rgb(False) to switch red and blue pixels if your LCD module shows incorrect colors.

Pin connections:

LCD ESP32-DevKitC
VLED 3V3
RST IO2
A0 IO16(DC)
SDA IO13(MOSI)
SCK IO14(CLK)
VCC 3V3
CS IO15
GND GND

tftbmp.py is another sample similar to Adafruit's tftbmp sketch for Arduino.

Place bmp file named 'test240x240.bmp' in the file system of MicroPython using file uploading tool such as ampy, etc.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages