We're working on an ST7789 breakout garden SPI LCD module, so I've had hardware available for testing.
This draft PR replaces #91 and reflects my approach to implementing this LCD so far, but it has a dependency upon numpy that I'm not entirely comfortable with.
The key issue with this LCD is the 18-bit colour data that needs to be sent- requiring the (hopefully elegant) repacking of 24-bit colour into 18-bits. My familliarity (or lack thereof) with Luma fails me here- is there an established pattern for repacking data that could be used instead?
Among other things it also needs:
To default to spi interface, possible?
To default to 160x160 and not 128x64
For my own future reference, this has been tested and works in the rear SPI port of BG SPI using the command-line:
We're working on an ST7789 breakout garden SPI LCD module, so I've had hardware available for testing.
This draft PR replaces #91 and reflects my approach to implementing this LCD so far, but it has a dependency upon
numpy
that I'm not entirely comfortable with.The key issue with this LCD is the 18-bit colour data that needs to be sent- requiring the (hopefully elegant) repacking of 24-bit colour into 18-bits. My familliarity (or lack thereof) with Luma fails me here- is there an established pattern for repacking data that could be used instead?
Among other things it also needs:
For my own future reference, this has been tested and works in the rear SPI port of BG SPI using the command-line:
I can't seem to get it to work on the other SPI port with CE1/BCM7.