Skip to content

The library could not display some color correctly #2322

Discussion options

You must be logged in to vote

The screen has a 16 bit colour interface this is the 565 RGB format. So 24 bit 888 format colours must be converted to a new 16 bit value. That is what the color565 function does. If you try to write:
tft.fillScreen(0x38b25c)

Then only the 16 bits 0xb25c will be used.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@appleshaman
Comment options

@appleshaman
Comment options

Answer selected by appleshaman
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants
Converted from issue

This discussion was converted from issue #2321 on January 14, 2023 12:50.