adafruit / Adafruit-ST7735-Library

This is a library for the Adafruit 1.8" SPI display http://www.adafruit.com/products/358 and http://www.adafruit.com/products/618
https://learn.adafruit.com/1-8-tft-display
547 stars 303 forks source link

Add 7789-specific example and fix a couple display offset issues #169

Closed makermelissa closed 2 years ago

makermelissa commented 2 years ago

This fixes the 1.9" display, which was off by 1 pixel for the offset and the 1.69" display, which had a bad offset when rotation was set to 2 or 3. Most of the displays are actually centered within a 320x240 internal buffer, with the 240x240 and 240x135 really only being the odd ones out, so I simplified the code.

This was tested on 1.69", 1.47", and 1.9" displays at various rotations.

makermelissa commented 2 years ago

I'm going to wait until GitHub actions is back to normal status before merging cause things are still behaving a bit wonky.