ST7735 TFT LCD driver for MicroPython
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md fixed: IO5->IO18 (thanks @chalei) Sep 4, 2018
ST7735.py added _offset and initb2() to TFT class for some blue-tab LCD modules Sep 3, 2018
graphicstest.py Update graphicstest.py Nov 14, 2017
test128x160.bmp
tftbmp.py

README.md

MicroPython-ST7735

This is a modified version of GuyCarver'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 GuyCarver'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, try replaceing initr() at line 8 to initg() or initb() or initb2(). 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 IO17
A0 IO16(DC)
SDA IO13(MOSI)
SCK IO14(CLK)
VCC 3V3
CS IO18
GND GND

YouTube image here

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

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