Skip to content

MicroPython driver for ST7302/ST7305 2.13/2.9 inch Reflective TFT, viper(faster) and bytecode version provided. No additional memory is required after init.

License

Notifications You must be signed in to change notification settings

elulis/micropython_ST7302

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroPython ST7302 ST7305 driver

MicroPython driver for ST7302/ST7305 2.13/2.9 inch Reflective TFT, viper(faster) and bytecode version provided. No additional memory is required after init.

example for ESP32-S2

refresh() on ESP32-S2: viper cost 7 ms, byte code cost 140 ms.

import time
from machine import Pin, SPI
from st7302viper import TFT213

led = Pin(15, Pin.OUT, value = 1)

pw = Pin(16, Pin.OUT, value = 1)
cs = Pin(39, Pin.OUT, value = 1)
dc = Pin(37, Pin.OUT, value = 1)
rs = Pin(35, Pin.OUT, value = 1)
spi = SPI(1, baudrate=40_000_000, polarity=0, phase=0, sck=Pin(18), mosi=Pin(33), miso=Pin(17))

lcd = TFT213(spi, cs, dc, rs)
lcd.text('Hello, World', 0, 0, 1)
t = time.ticks_ms()
lcd.refresh()

t = time.ticks_diff(time.ticks_ms(), t)
lcd.text(f'Cost {t} ms.', 0, 10, 1)
lcd.refresh()

Special thanks to @zhcong for the ST7302 LCD screen driver implementation. Check out the original project here: ST7302-for-micropython.

About

MicroPython driver for ST7302/ST7305 2.13/2.9 inch Reflective TFT, viper(faster) and bytecode version provided. No additional memory is required after init.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy