Closed N0ury closed 11 months ago
Reading back my post I realized there was an error, there was a useless line -D ILI9163_DRIVER=1
I have removed it.
The result is not better.
Here it is in this screenshot:
Seconds needle has disappeared, and garbage is still here. Not at the same place.
Colors have changed too.
Sorry for all this noise. Looking very closely, now seconds needle goes the right way. It's only in very light yellow on a white background, so near invisible. But garbage is still here. Half of the problem is solved...
doc says: // For ST7789, ST7735, ILI9163 and GC9A01 ONLY, define the pixel width and height in portrait orientation so changed to -D TFT_WIDTH=240 ; Set TFT size -D TFT_HEIGHT=320 Garbage has gone away...
Clock is not centered vertically and colors are bad. Is it wanted or is it an issue. I can't say.
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-Green-Red
These problems occur because different suppliers wire the display pixels in different ways.
Hi, this is not an issue, it's more a newbie question. I'm using a X-NUCLEO-GFX01M2 STM display board along with a STM NUCLEO-F411RE board. Display is a ST7789V (2.2" SPI QVGA TFT LCD 320x240). It has also a 64-Mbit SPI NOR Flash memory for storing graphic images, texts and texture (I don't use it for the moment). I use these boards under platformIO. I try to use the clock example. Clock is displayed, but seconds needle goes backward (ie from right to left). Furthermore, the background is not clean on the right side. I attach a screenshot.
The clock is not centered, not sure if this is a problem. It's my very first test of this lib, and I'm very happy to see the clock. But I would like to go further and deeper in testing and using the lib. I would also like why this clock wants me to become younger... And also why the background is not clean. Here's my plaformio.ini file, it's very simple:
I'm not sure what to put as SPI_FREQUENCY, I leaved it unchanged. Is this the problem?
This lib is very promising for me. I really want to check it more.
Thanks for any help.