Skip to content

ST7789 use 240x280 does not work #18

@ronovar

Description

@ronovar

Hi, i im using ST7789V2 (tied CS to GND) and all is working except resolution, in library i see that is defined WIDTH and HEIGHT of 240x240 but i need to be 240x280 because i need to get all pixels working on my display.

Here is code that i write from example library:

`#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Arduino_ST7789_Fast.h"

#define SCR_WD 240
#define SCR_HT 280

#define TFT_DC 7
#define TFT_RST 8
//#define TFT_CS 9
#define CS_ALWAYS_LOW

Arduino_ST7789 tft = Arduino_ST7789(TFT_DC, TFT_RST);

void setup() {
// put your setup code here, to run once:
tft.init(SCR_WD, SCR_HT);
tft.begin();
tft.setRotation(1);
tft.fillScreen(BLACK);
//tft.setCursor(0, 0);
//tft.setTextColor(WHITE); tft.setTextSize(2);
//tft.println("IPS 240x280 ST7789V");
}

void loop() {
// put your main code here, to run repeatedly:

}
`

And here is the picture what i was getting as output:

1673957999144

As you can see screen is black for 240x240 (library limit), i define 240x280 but it have white color and that is missing 40 pixels....can you please update your library to be working with higher resolutions others that 240x240?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions