Zeroji / st7789v

Python module to control ST7789V-based displays
GNU General Public License v3.0
17 stars 6 forks source link

OrangePi Zero 2 Support? #5

Open YCF opened 1 year ago

YCF commented 1 year ago

https://github.com/rm-hull/OPi.GPIO

Zeroji commented 1 year ago

Have you tried writing a custom interface for it? Shouldn't be too hard if OPi is a drop-in replacement, have a look at st7789v/interface/raspberry.py and see if you can copy parts of it

Ideally you would be able to write:

with OrangePi(pin_cs=..., ...) as orange:
    display = Display(orange)
    display.initialize(...)