You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a display with SSD1963 driver in 8 bit parallel mode connected to a Pico.
If I write directly to the display via tft->setTextColor(TFT_YELLOW); and e.g. tft->drawString("Test", 100, 100, 1); I am getting correct colors using the define TFT_RGB_ORDER=TFT_RGB. But if I am using sprites, e.g. spr[sel].fillRect(10, 10,100, 100, TFT_RED); and tft->pushImageDMA(100 * sel, 100, sprPtrAttInd[sel]); wrong colors are shown. E.g. red is displayed in green.
On a Pimoroni Tufty2040 with ST7789 display also in 8 bit parallel mode the exact same code is running fine where TFT_RGB_ORDER is not set.
The defines for the display in my platformIo.ini are:
I am using a display with SSD1963 driver in 8 bit parallel mode connected to a Pico.
If I write directly to the display via
tft->setTextColor(TFT_YELLOW);
and e.g.tft->drawString("Test", 100, 100, 1);
I am getting correct colors using the defineTFT_RGB_ORDER=TFT_RGB
. But if I am using sprites, e.g.spr[sel].fillRect(10, 10,100, 100, TFT_RED);
andtft->pushImageDMA(100 * sel, 100, sprPtrAttInd[sel]);
wrong colors are shown. E.g. red is displayed in green.On a Pimoroni Tufty2040 with ST7789 display also in 8 bit parallel mode the exact same code is running fine where
TFT_RGB_ORDER
is not set.The defines for the display in my platformIo.ini are:
I am wondering if the define
TFT_RGB_ORDER
is not considered for sprites?/edit: setting spr[sel].setSwapBytes(true/false) does not help
One Exemplare is the bouncy circles I am using in my code
The text was updated successfully, but these errors were encountered: