Closed w1s3m0nk closed 3 months ago
Hello w1s3m0nk, I guess there is no "harware configurable" way to set the display coordinate as you said under this rotation configuration. But in software it's easy to achieve. Just use screen's height minus the y coordinate. For example, draw a point at (x, y), then you can write ST7789_DrawPixel(x, ST7789_HEIGHT - y, color).
Hope this helps.
Hello, @Floyd-Fish,
I've bought the 240x320 display based on ST7789 driver faced the problem that in the ST7789_ROTATION == 3 mode the start of the coordinates is in the top left part of the display.
To test the true coordinates, I've used this part of code to get the visual identification where the begin and end of coordinates are located:
Here is the photo with some mark-up from my side:
Could you please explain/provide solution how to set 0,0 to the left bottom side of display?