Closed samo-sk closed 11 months ago
please ask DEEK to submit a PR to help and we will review it!
I have noticed this issue is a duplicate of #154.
Information for anybody reading this issue report after its closure:
The proposed fix is (in theory) incorrect, as the values of offsets (_colstart
and _rowstart
) are also present in Rcmd2green
, a part of initialization code for displays with the mentioned offsets. However, the proposed change incorrectly uses the init code for blacktab (Rcmd2red
), which is offset-less. However, this issue has no effect in practice, as the effects of Rcmd2green
/Rcmd2red
are overriden by Adafruit_ST77xx::setAddrWindow
, which is called before anything is drawn on the display.
Hello, I have a "Deek-Robot" TFT, which looks exactly like one pictured here, and uses ST7735. None of the options for
initR
works well – the screen size is OK forINITR_GREENTAB
andINITR_BLACKTAB
, but when usingINITR_GREENTAB
, red is swapped with blue, and when usingINITR_BLACKTAB
, the image on the display is shifted. This issue is the same as the one described in #180, but I'm not sure what type of display is used by the user who reported it. This issue is also described here. The library works perfectly wheninitR(INITR_BLACKTAB)
is used, but it is modified to set _colstart to 2 and _rowstart to 1 (like whenINITR_GREENTAB
is used). Could you please modify this library (more specifically,Adafruit_ST7735.cpp
andAdafruit_ST7735.h
) to create another option forinitR
for initializing the display like mentioned above? AlsosetRotation
will need to be modified to behave just like whentabcolor
isINITR_BLACKTAB
when the new option is used. Thank you.