cbm80amiga / Arduino_ST7789_Fast

Fast SPI library for the ST7789 IPS display
GNU Lesser General Public License v3.0
230 stars 67 forks source link

ST7789 (240*240) gives a blurry vertical lines with Arduino pro micro! #23

Open HMI1973 opened 3 months ago

HMI1973 commented 3 months ago

I'm working on ST7789 (240*240) from Aliexpress without CS pin, I used Arduino Pro Micro but actually the screen doesn't show the text nor the graphics correctly, it gives a kind of blurry vertical lines.

ST7789 Wiring : Wiring - Pro-Micro

What I get is a blurry result: ST7789

I'm trying to investigate the case but anyone faced this issue before? Code:

#include "src/ST7789_AVR.h"

#define TFT_CS  -1 // without CS
#define TFT_RST  8
#define TFT_DC   9

#define SCR_WD 240
#define SCR_HT 240

ST7789_AVR lcd = ST7789_AVR(TFT_DC, TFT_RST, TFT_CS);
int xx=0;

void setup(void) 
{
    delay(2000);
    Serial.begin(115200);
    lcd.init(SCR_WD, SCR_HT);
    lcd.fillScreen(BLACK);
    lcd.fillScreen(BLUE);
}

void loop()
{
    xx=(xx+1)%40;
    lcd.setCursor(xx, 10);
    lcd.setTextColor(WHITE,BLUE);
    lcd.setTextSize(2);
    lcd.println("HELLO WORLD");
}