My mistake ! Bad link in my first post, of course some crucial informations are missing.
The issue was discussed in this post ⟶ https://forum.arduino.cc/t/the-320x240-display-does-not-fully-work-with-the-arduino-st7789-fast-library/1034154
Anyway : here is the video of what is happening : https://www.dropbox.com/scl/fi/pwxs3vcdxwvi1yjkl07ye/IMG_5700.MOV?rlkey=z3f53oxzy5uv13fqnv4678k88&dl=0
As for the sketch, I am just using the "ST7789_Adafruit_Benchmark" from the "Fast ST7789 Library" written by Pawel A. Hernik. I tried changing some values but it did not seem to have any effect. In my video, you can see that the screen is only used as if it was a 240*240 display, even though I changed
#define SCR_WD 240
#define SCR_HT 240
#include <SPI.h>
#include <Adafruit_GFX.h>
into
#define SCR_WD 240
#define SCR_HT 320
#include <SPI.h>
#include <Adafruit_GFX.h>
If changing these values have no effect, I wonder what they are here for...
I tried another example (ST7789_HelloWorld) from the same library
#define TFT_CS 8
#define TFT_DC 9
#define TFT_RST 10
#define SCR_WD 240
#define SCR_HT 240 // 320 - to allow access to full 240x320 frame buffer
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Arduino_ST7789_Fast.h>
//Arduino_ST7789 lcd = Arduino_ST7789(TFT_DC, TFT_RST);
Arduino_ST7789 lcd = Arduino_ST7789(TFT_DC, TFT_RST, TFT_CS);
void setup(void)
{
Serial.begin(9600);
lcd.init(SCR_WD, SCR_HT);
lcd.fillScreen(BLACK);
lcd.setCursor(0, 0);
lcd.setTextColor(WHITE,BLUE);
lcd.setTextSize(3);
lcd.println("HELLO WORLD");
}
void loop()
{ //nothing here
}
⟶ in this sketch, SCR_WD and SCR_HT are used in the tft.init() method (which is not the case in the other example). The result looks like this
So I've been investigating a bit further and tested a series of values for SCR_HT :
There seems to be some kind of maximum value of 273. Beyond that, as you can see on the picture, the "lower limit" of the display goes back to the top of the screen. But why 273 ?? There must be some kind of way to use the whole screen.


