ST7789 GMT-130-v1.0 Not working well

Hey, i got a problem here, you see, i just got a new LCD screen and turns out it isnt working well, im pretty sure that it isnt hardware problems since when i press the RESET button on my arduino UNO, it shows the images just fine, when i release or dont press it at all, it shows this image all buggy, i really dont know what to do, i did the pinout just as the code said, here it is btw:

// ST7789 library example
// (c) 2019 Pawel A. Hernik

/*
 ST7789 240x240 IPS (without CS pin) connections (only 6 wires required):

 #01 GND -> GND
 #02 VCC -> VCC (3.3V only!)
 #03 SCL -> D13/SCK
 #04 SDA -> D11/MOSI
 #05 RES -> D8 or any digital
 #06 DC  -> D7 or any digital
 #07 BLK -> NC
*/

//#define TFT_CS    6
#define TFT_DC    7
#define TFT_RST   8 
#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,BLACK);
  lcd.setTextSize(3);
  lcd.println("HELLO WORLD");
 }

void loop()
{
}


Any tip is welcome, thx in advance.



This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.