• sales

    +86-0755-88291180

display image/library

2025-05-27 02:10:01 Ask

need to know the correct adress to turn on display... and see text


#include <SPI.h>

#include <Adafruit_GFX.h>

#include <Adafruit_ST7789.h>

#define TFT_CS 9

#define TFT_DC 8

#define TFT_RST 7

Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST);

void setup() {

Serial.begin(115200);

tft.init(240, 240);

tft.setRotation(1);

tft.fillScreen(ST77XX_BLACK);

tft.setTextColor(ST77XX_WHITE);

tft.setTextSize(2);

tft.setCursor(10, 10);

0answers
Price: $9.99
Part Number: ESP32C3-1.44
Brand: Spotpear