adafruit / Adafruit_RA8875

Adafruit Arduino library driver for the RA8875 TFT driver
http://www.adafruit.com/products/1590
Other
68 stars 58 forks source link

Add support for 480x80 display #26

Closed makermelissa closed 5 years ago

makermelissa commented 5 years ago

The 480x80 display just came in the mail, so I thought I'd add an issue for it here.

makermelissa commented 5 years ago

Almost got this now. Definitely trickier than the 128 pixel display since it's initialized as the bottom 80 pixels of a 480x272 pixel controller. Adding a vertical offset solved it mostly. The only thing not working is rounded rects while rotation is set 180 degrees. I think I may have run into a similar issue with the CircuitPython driver which might be why I implemented it the way I did.

makermelissa commented 5 years ago

The issue with the Rounded Rects was it would draw them weird if x was greater than the width and same with height. Adding a simple if greater than statement with a swap resolved it.