I’m hoping to adapt the ST7789 python library to use these SPI displays on Rock devices. I’ve enabled spidev SPI using “rsetup”, and have attempted to adapt the code to use gpiod instead of RPi.GPIO, and while I can certainly get the backlight to work, I can’t display a visible image. I’ve also attempted to retrieve data from the display ram using ST7789_RAMRD however it returns only 0s. No errors, just nothing on the screen. I’m using the latest official debian build (36).
I’ve been hoping to use a Pimoroni Display Hat Mini on my Rock 3c or Zero (started with the 3C) and while the pinout appears to be basically the same (minus CS1, I’m assuming I can just use CS0) and the voltages should be similar (3.3v for IO), I can’t seem to get colour life from the display. I’ve tested it on raspberry pis and it is working using the unmodified library.
I’ve attached my adaptation of the adafruit library provided by Pimoroni, would appreciate if someone more knowledgeable might be able to point out where it is failing or give me some help?
gpiod_ST7789.zip (4.2 KB)