Closed reaper7 closed 8 years ago
Yes, thanks for point me this! However I will release a new version this week based on 1.0p7 of TFT_ILI9163C that have this fixed plus much more. Code it's almost same, just initialization a some command.
tnx for info and great lib! btw. please put this fix to Your TFT_ST7735 lib too ;)
Yes. Plan is finish and test 1.0p7 then I can easily transfer to many libs!
In the meantime you can put the new setCursor function: ` void TFT_ILI9163C::setCursor(int16_t x, int16_t y) {
if (boundaryCheck(x,y)) return;
if (_portrait) swap(x,y);
setArea(0x0000,0x0000,x,y);
_cursorX = x;
_cursorY = y;
} `
ok, tnx!
when I use setCursor(x, y) then I expect that first value is x axis and second value is y axis (no matter how orientation is set ) but now it is dependent on the screen orientation and I must flip x and y on setCursor when I change orientation.
for me setCursor and maybe other functions must check what orientation is set and (in this case) flip x and y inside function without user intervention.
check this example (I past loop only): in this example I only change "y" value for setCursor for each of four orientation, orientation 0 and 2 works as expected but 1 and 3 show wrong