Skip to content
Discussion options

You must be logged in to vote

By default the sketch centres the clock in portrait mode, not landscape. The setRotation function defines the screen rotation.

The colours are inverted, (black = white). Run the included example diagnostic sketch Colour_Test, see header and use the sketch to get black and white correct.

You will then have to use one of these lines in your sketch after tft.init():

tft.invertDisplay( true );
tft.invertDisplay( false );

Your display also has red and green swapped, so include one of these lines in your setup, compile, upload and try the Colour_Test example again to find the correct option:

-D TFT_RGB_ORDER TFT_RGB=1 ; Colour order Red-Green-Blue
-D TFT_RGB_ORDER TFT_BGR=1 ; Colour order Blue-…

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by N0ury
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
None yet
2 participants
Converted from issue

This discussion was converted from issue #2926 on October 26, 2023 20:15.