jeremyjh / ESP32_TFT_library

Full featured TFT library for ESP32 with demo application
47 stars 23 forks source link

Adding offset and inversion handling #4

Closed frhun closed 4 years ago

frhun commented 4 years ago

This eliminates the additional code described here: https://github.com/Xinyuan-LilyGO/TTGO-T-Display/issues/8 , and makes displays with offsets behave much more like normal displays (even when rotating). Specific code changes in applications only need to be made when using the low level functions from tftspi.h, and when initializing the display to check if inversion should be applied from the beginning. (TFT_ALLWAYS_INVERTED)

With these patches the TTGO T-Display is now fully supported, and could imho be added to the README.

frhun commented 4 years ago

I only tested this on the T-Display, so before merging this someone should test if the macros really don't affect existing displays.

jeremyjh commented 4 years ago

Thanks!