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
550 stars 305 forks source link

Add screen flip function for ST7789 #150

Open zivyuan opened 2 years ago

zivyuan commented 2 years ago

Screen flip function was useful in some applications that use mirrors.

Add flip flag added to setRotation() function.

void setRotation(uint8_t r, bool flip);

Only tested on 1.3" TFT screen with 7 pins.

1.3" TFT with 7 pins

jbry commented 1 week ago

Found this because I was using this: https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/hw-reference/esp32s2/user-guide-esp-lyrap-lcd32-v1.1.html and everything was mirrored. I know this PR is old - but wanted to express my thanks as it got me out of a hole :)