rm-hull / luma.lcd

Python module to drive PCD8544, HT1621, ST7735, ST7567 and UC1701X-based LCDs
https://luma-lcd.readthedocs.io
MIT License
156 stars 56 forks source link

Add support for 0.96" ST7735 (160x80) color LCD driver #79

Closed rm-hull closed 5 years ago

rm-hull commented 5 years ago

https://www.aliexpress.com/item/IPS-0-96-inch-7P-SPI-HD-65K-Full-Color-LCD-Module-ST7735-Drive-IC-80/32888860613.html

LCD Pin Remarks RPi Pin RPi Function
GND Ground P01-06 GND
VCC +3.3V Power P01-01 3V3
SCL SPI clock P01-23 GPIO 11 (SCLK)
SDA SPI data P01-19 GPIO 10 (MOSI)
RES Reset P01-18 GPIO 24
DC Data/command P01-16 GPIO 23
CS SPI chip select P01-24 GPIO 8 (CE0)
BLK Backlight control P01-12 GPIO 18 (PCM_CLK)

image

image

rm-hull commented 5 years ago

Requires vertical offset of 24px, and BGR flag:

$ python examples/perfloop.py -f conf/st7735.conf --width=160 --height=80 --v-offset=24 --bgr

image