Hi, these day I've bought this tft display on AliExpress. When I got the chance to build the circuit an test it properly I've got some problems. The backlight of the display blinks everytime some command is passed from the controller. But nothing shows off, only the backlight(with no color defined).
In the picture the wiring is a mess, so there's the explanation (i'm using arduino uno).
GND -> GND
VCC -> 3.3V
SCL -> SCL
SDA -> SDA
RES -> PIN8
DC -> PIN9
CS -> PIN10
BLK -> NC
There's the code, just trying a pretty basic one.
#include <Adafruit_GFX.h>
#include <Adafruit_ST7789.h>
#include <SPI.h>
#define CS 10
#define DC 9
#define RES 8
Adafruit_ST7789 tft = Adafruit_ST7789(CS, DC, RES);
void setup() {
Serial.begin(9600);
tft.init(240, 280);
tft.setRotation(1);
tft.fillScreen(ST77XX_RED);
delay(1000);
tft.fillScreen(ST77XX_BLACK);
delay(1000);
tft.setCursor(0, 0);
tft.setTextColor(ST77XX_WHITE);
tft.setTextSize(2);
tft.print("HELLO");
}
void loop() {
}


