Workaround for 240x240 screen rotation issue

- The st7789 controller is for 320x240 screen, but the screen is 240x240, therefore when screen is rotated, an offset of 80 must be added depending on the orientation
- Also added some comments
This commit is contained in:
Joachim
2020-08-26 11:14:01 +02:00
parent f5896a3609
commit dd2f5f0ca8
2 changed files with 25 additions and 9 deletions

View File

@ -234,7 +234,7 @@ public:
void invertDisplay(bool i);
/*Not useful for user, sets the Region of Interest window*/
inline void setAddrWindow(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1);
void setAddrWindow(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1);
/**
* @brief Scroll on Y-axis