moononournation / Arduino_GFX

Arduino GFX developing for various color displays and various data bus interfaces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GFX display not working with T-Display S3 AMOLED

Zitus opened this issue · comments

Is this a correct basic sketch for LilyGo T-Display S3 Amoled? I tried many times and didn't work. It compiles and uploads correctly.

#include <Arduino_GFX_Library.h>

#define GFX_DEV_DEVICE LILYGO_T_DISPLAY_S3_AMOLED
Arduino_DataBus bus = new Arduino_ESP32QSPI(
6 /
cs /, 47 / sck /, 18 / d0 /, 7 / d1 /, 48 / d2 /, 5 / d3 */);
Arduino_GFX gfx = new Arduino_RM67162(bus, 17 / RST /, 0 / rotation */);

void setup(void)
{
Serial.begin(115200);
Serial.println("Setup Started");

#ifdef GFX_EXTRA_PRE_INIT
GFX_EXTRA_PRE_INIT();
#endif

// Init Display
if (!gfx->begin())
{
Serial.println("gfx->begin() failed!");
while (1); // Halt the program
}
Serial.println("gfx->begin() success!");

gfx->fillScreen(BLACK);
Serial.println("Screen filled with BLACK");

#ifdef GFX_BL
pinMode(GFX_BL, OUTPUT);
digitalWrite(GFX_BL, HIGH);
Serial.println("Backlight turned ON");
#endif

gfx->setCursor(10, 10);
gfx->setTextColor(RED);
gfx->println("Hello World!");
Serial.println("Hello World printed!");

delay(5000); // 5 seconds
}

void loop()
{
gfx->setCursor(random(gfx->width()), random(gfx->height()));
gfx->setTextColor(random(0xffff), random(0xffff));
gfx->setTextSize(random(6) /* x scale /, random(6) / y scale /, random(2) / pixel_margin */);
gfx->println("Hello World!");

delay(1000); // 1 second
}

it have many similar products, can you give your purchase link to check?

the pins are correct, can you run PDQgraphicstest ok?

any output in serial monitor?

it should at least have some output show program started, please check youur board parameters selected correct in Arduino IDE tools menu

the output seems correct. if you uncommented the dev device in the header file, no need to touch any parameters

Display working now. Any information on how to use sprites with Arduino GFX Library?

good new, can you share what fix it?
and you may refer SpriteGif.ino to get some hint.

Oh really?