Sprite colors wrong, TFT colors OK on Arduino Due, ILI9488 SPI #3595
Replies: 2 comments 3 replies
-
Hi,
|
Beta Was this translation helpful? Give feedback.
-
Hier ondervind ik exact dezelfde problemen. Ook met een ILI9488 SPI display. |
Beta Was this translation helpful? Give feedback.
-
Hi,
using
tft.fillScreen(TFT_BLUE);
or any other TFT_eSPI functions delivers correct colors.
When I like to add a sprites:
sprite.fillCircle(100, 100, 20, TFT_YELLOW);
the colors are wrong:
Blue is green. Green is red. Red is Blue. Yellow is magenta.
The resulting colors are a bit off and don't exactly match the colors on tft.
Working colors are only black and white.
I tried to play around with setSwapBytes and setColorDepth.
setSwapBytes changes nothing. setColorDepth changes the colors but not to the correct state.
I use the same code as in examples but get different results.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions