Bodmer / TFT_ST7735

Arduino graphics library for ST7735 displays with propotional fonts
78 stars 32 forks source link

another 80x160 display, not supported by current TAB_COLOR defines #19

Open JeffCalwood opened 3 years ago

JeffCalwood commented 3 years ago

It seems there is yet another version of 80x160 TFT, which doesn't seem to be supported by the current TAB_COLOR defines, here https://www.aliexpress.com/item/4000018872259.html . INITR_GREENTAB2 seems to eliminate all boundary pixel issues, but at a minimum colors are inverted. I used tft.invertDisplay(true); for now. The RLE font demo suggest I should then see a brown background somewhere, but at best I see a dark grey. So maybe there are also gamma setting changes required ...

JeffCalwood commented 3 years ago

(in case someone needs to get this display running) for now I kludged this by modifying setRotation in the library. BTW, setRotation() corrupts the display width and height if passed via constructor ... so use the #defines ST7735_TFTHEIGHT and WIDTH instead ... anyhow, for switch(rotation) case 1, if modified to writedata(MADCTL_MY | MADCTL_MV | MADCTL_BGR); // BGR !! colstart = 1; rowstart = 2+24; // +24 !! the display looks good and colors look alright.