pimoroni / st7789-python

Python library to control an ST7789 240x240 1.3" TFT LCD display.
MIT License
193 stars 51 forks source link

Feature/240x135-lcd #16

Closed slabua closed 2 years ago

slabua commented 3 years ago

Added support to the provided examples for 240x135 resolution LCD (successfully tested on Pimoroni Pico Display Pack). One key change has been made to the library itself here, that would otherwise fail for non square displays.

Gadgetoid commented 2 years ago

Thank you- I'm completely replacing the numpy RGB888 to RGB5565 code with: https://github.com/pimoroni/st7789-python/pull/17/commits/568e04cd64189acc532903f30514d08cb81e06dc

My attempts to get a 240x135 pixel display up and running were... unsuccessful (with/without this change)... if you get a moment could you confirm it still works with this change?

slabua commented 2 years ago

@Gadgetoid there seems to be no problem with 568e04c!

Gadgetoid commented 2 years ago

Whew, thank you for testing and doubly for doing it so quickly too!!