Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GFX display not working with T-Display S3 AMOLED #498

Closed
Zitus opened this issue Jun 16, 2024 · 15 comments
Closed

GFX display not working with T-Display S3 AMOLED #498

Zitus opened this issue Jun 16, 2024 · 15 comments

Comments

@Zitus
Copy link

Zitus commented Jun 16, 2024

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
}

@moononournation
Copy link
Owner

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

@Zitus
Copy link
Author

Zitus commented Jun 17, 2024 via email

@moononournation
Copy link
Owner

the pins are correct, can you run PDQgraphicstest ok?

@Zitus
Copy link
Author

Zitus commented Jun 17, 2024 via email

@moononournation
Copy link
Owner

any output in serial monitor?

@Zitus
Copy link
Author

Zitus commented Jun 17, 2024 via email

@moononournation
Copy link
Owner

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

@Zitus
Copy link
Author

Zitus commented Jun 17, 2024 via email

@Zitus
Copy link
Author

Zitus commented Jun 17, 2024 via email

@moononournation
Copy link
Owner

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

@Zitus
Copy link
Author

Zitus commented Jun 17, 2024 via email

@Zitus
Copy link
Author

Zitus commented Jun 17, 2024

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

@moononournation
Copy link
Owner

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

@Zitus
Copy link
Author

Zitus commented Jun 17, 2024 via email

@moononournation
Copy link
Owner

Oh really?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants