Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devbis/st7789py_mpy
Slow micropython driver for 240x240 ST7789 display without CS pin from Ali Express, written in MicroPython
https://github.com/devbis/st7789py_mpy
display-driver micropython micropython-esp8266 spi st7789
Last synced: 3 months ago
JSON representation
Slow micropython driver for 240x240 ST7789 display without CS pin from Ali Express, written in MicroPython
- Host: GitHub
- URL: https://github.com/devbis/st7789py_mpy
- Owner: devbis
- License: mit
- Created: 2019-02-15T17:47:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-27T18:07:52.000Z (almost 5 years ago)
- Last Synced: 2024-04-29T11:34:13.777Z (6 months ago)
- Topics: display-driver, micropython, micropython-esp8266, spi, st7789
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 72
- Watchers: 4
- Forks: 33
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - st7789py_mpy - Slow MicroPython driver for 240x240 ST7789 display without CS pin from AliExpress, written in MicroPython. (Libraries / Display)
README
Slow ST7789 driver for MicroPython
==================================This is a slow MicroPython driver for 240x240 ST7789 display without CS pin
from Ali Express. It also supports 135x240 TTGO DisplayVersion: 0.1.4
The performance is quite low due to python function call overhead.
If you have a chance to build firmware and you are using
ESP8266/ESP32 controllers, you should try the fast driver
https://github.com/devbis/st7789_mpyExamples
--------# ESP8266
import machine
import st7789py
spi = machine.SPI(1, baudrate=40000000, polarity=1)
display = st7789py.ST7789(spi, 240, 240, reset=machine.Pin(5, machine.Pin.OUT), dc=machine.Pin(4, machine.Pin.OUT))
display.init()
display.pixel(120, 120, st7789py.YELLOW)