TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
BSD 3-Clause "New" or "Revised" License
608
stars
192
forks
source link
st7789: fix scrolling when rotated by 180° #584
Closed
aykevl closed 1 year ago
This fixes https://github.com/tinygo-org/drivers/issues/573. It doesn't handle 90° or 270°, I guess it needs a fix for 270° but I haven't tested that so didn't include it in the patch.
Tested on my PineTime on top of the current dev branch and it works in both 0° and 180° while previously it would only work with 180°.
Note that with this patch, the behavior matches the ili9341 driver, which appears to do exactly this in hardware (but the st7789 apparently doesn't).