rm-hull / luma.lcd

Python module to drive PCD8544, HT1621, ST7735, ST7567 and UC1701X-based LCDs
https://luma-lcd.readthedocs.io
MIT License
156 stars 56 forks source link

Add support for 2.8" ILI9341 (320x240) based screens #94

Closed ric2b closed 4 years ago

ric2b commented 4 years ago

Adds support for these screens:

It's largely based on the existing class for the ST7735. I'm using an original Raspberry Pi A and the creation of the byte array before sending to the display was quite slow (several seconds) so I improved it's performance by using the Pillow .tobytes() method, it now takes roughly 1 second for each screen refresh.

I did not add support for the touchscreen functionality that these screens have.

ric2b commented 4 years ago

(I'll have time on friday to fix the issues with the tests and coverage)

rm-hull commented 4 years ago

P.s. there is a Travis job that does flake8 linting, and it’s flagged up a few things that need fixing, see https://travis-ci.org/rm-hull/luma.lcd/jobs/615667704#L539.

ric2b commented 4 years ago

Ok, I think it's ready for merging, don't know if you want to take another look at it :)

rm-hull commented 4 years ago

v2.2.0 of luma.lcd released with support for ILI9341 :rocket: See https://pypi.org/project/luma.lcd/2.2.0/

Many thanks @ric2b