moononournation / Arduino_GFX

Arduino GFX developing for various color displays and various data bus interfaces
Other
760 stars 151 forks source link

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

Closed Zitus closed 2 weeks ago

Zitus commented 2 weeks ago

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

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 commented 2 weeks ago

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

Zitus commented 2 weeks ago

https://www.lilygo.cc/products/t-display-s3-amoled?variant=43506902368437

El lun, 17 jun 2024, 2:27, moononournation @.***> escribió:

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

— Reply to this email directly, view it on GitHub https://github.com/moononournation/Arduino_GFX/issues/498#issuecomment-2171962853, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEBJTGD6AVJUS276VMLRANDZHYUNNAVCNFSM6AAAAABJMZSOU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZRHE3DEOBVGM . You are receiving this because you authored the thread.Message ID: @.***>

moononournation commented 2 weeks ago

the pins are correct, can you run PDQgraphicstest ok?

Zitus commented 2 weeks ago

Correct device was uncommented in Arduino_GFX_dev_device.h , (don't know about pins) but PDQgraphicstest produces nothing on the board.

El lun, 17 jun 2024 a las 8:01, moononournation @.***>) escribió:

the pins are correct, can you run PDQgraphicstest ok?

— Reply to this email directly, view it on GitHub https://github.com/moononournation/Arduino_GFX/issues/498#issuecomment-2172354102, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEBJTGFCHEHOHSPIWEUB5GTZHZ3TDAVCNFSM6AAAAABJMZSOU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZSGM2TIMJQGI . You are receiving this because you authored the thread.Message ID: @.***>

-- Mariano Goñi https://www.marianogoni.com http://www.marianogoni.com

moononournation commented 2 weeks ago

any output in serial monitor?

Zitus commented 2 weeks ago

No, nothing in serial.

How do I know what to uncomment in databus or display, if there's no name about the board?

El lun, 17 jun 2024 a las 8:13, moononournation @.***>) escribió:

any output in serial monitor?

— Reply to this email directly, view it on GitHub https://github.com/moononournation/Arduino_GFX/issues/498#issuecomment-2172368519, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEBJTGCU5IGDBKBNBECN45DZHZ5CDAVCNFSM6AAAAABJMZSOU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZSGM3DQNJRHE . You are receiving this because you authored the thread.Message ID: @.***>

-- Mariano Goñi https://www.marianogoni.com http://www.marianogoni.com

moononournation commented 2 weeks ago

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

Zitus commented 2 weeks ago

Sorry, there is output.

Pixels 3935183

Benchmark micro-secs

Screen fill 38491

Text 55165

Pixels 3935201

Lines 3528155

Horiz/Vert Lines 8489

Rectangles (filled) 49674

Rectangles (outline) 7060

Triangles (filled) 120497

Triangles (outline) 115618

Circles (filled) 201453

Circles (outline) 348419

Arcs (filled) 111537

Arcs (outline) 229778

Rounded rects (filled) 90156

Rounded rects (outline) 76782

Done!

But the screen remains black

El lun, 17 jun 2024 a las 8:17, Mariano Goni @.***>) escribió:

No, nothing in serial.

How do I know what to uncomment in databus or display, if there's no name about the board?

El lun, 17 jun 2024 a las 8:13, moononournation @.***>) escribió:

any output in serial monitor?

— Reply to this email directly, view it on GitHub https://github.com/moononournation/Arduino_GFX/issues/498#issuecomment-2172368519, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEBJTGCU5IGDBKBNBECN45DZHZ5CDAVCNFSM6AAAAABJMZSOU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZSGM3DQNJRHE . You are receiving this because you authored the thread.Message ID: @.***>

-- Mariano Goñi https://www.marianogoni.com http://www.marianogoni.com

-- Mariano Goñi https://www.marianogoni.com http://www.marianogoni.com

Zitus commented 2 weeks ago

Can you specify what to uncomment in Arduino_GFX_databus.h, Arduino_GFX_display.h, and Arduino_GFX_pins.h for this board?

El lun, 17 jun 2024 a las 8:20, Mariano Goni @.***>) escribió:

Sorry, there is output.

Pixels 3935183

Benchmark micro-secs

Screen fill 38491

Text 55165

Pixels 3935201

Lines 3528155

Horiz/Vert Lines 8489

Rectangles (filled) 49674

Rectangles (outline) 7060

Triangles (filled) 120497

Triangles (outline) 115618

Circles (filled) 201453

Circles (outline) 348419

Arcs (filled) 111537

Arcs (outline) 229778

Rounded rects (filled) 90156

Rounded rects (outline) 76782

Done!

But the screen remains black

El lun, 17 jun 2024 a las 8:17, Mariano Goni @.***>) escribió:

No, nothing in serial.

How do I know what to uncomment in databus or display, if there's no name about the board?

El lun, 17 jun 2024 a las 8:13, moononournation (< @.***>) escribió:

any output in serial monitor?

— Reply to this email directly, view it on GitHub https://github.com/moononournation/Arduino_GFX/issues/498#issuecomment-2172368519, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEBJTGCU5IGDBKBNBECN45DZHZ5CDAVCNFSM6AAAAABJMZSOU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZSGM3DQNJRHE . You are receiving this because you authored the thread.Message ID: @.***>

-- Mariano Goñi https://www.marianogoni.com http://www.marianogoni.com

-- Mariano Goñi https://www.marianogoni.com http://www.marianogoni.com

-- Mariano Goñi https://www.marianogoni.com http://www.marianogoni.com

moononournation commented 2 weeks ago

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

Zitus commented 2 weeks ago

I'm using arduino ide 2.1.1 Board is new, when connected first time screen worked and showed graphics. line uncommented in dev device is #define LILYGO_T_Display_S3_AMOLED

Any other ideas?

El lun, 17 jun 2024 a las 8:30, moononournation @.***>) escribió:

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

— Reply to this email directly, view it on GitHub https://github.com/moononournation/Arduino_GFX/issues/498#issuecomment-2172389553, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEBJTGEOLUIPZWQY3QKEJ4DZHZ673AVCNFSM6AAAAABJMZSOU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZSGM4DSNJVGM . You are receiving this because you authored the thread.Message ID: @.***>

-- Mariano Goñi https://www.marianogoni.com http://www.marianogoni.com

Zitus commented 2 weeks ago

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

moononournation commented 2 weeks ago

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

Zitus commented 2 weeks ago

Thanks.

Yes , you need to add the library LilyGo-AMOLED-Series-master.zip and not other.

El lun, 17 jun 2024 a las 16:17, moononournation @.***>) escribió:

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

— Reply to this email directly, view it on GitHub https://github.com/moononournation/Arduino_GFX/issues/498#issuecomment-2173548628, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEBJTGF6ECC7ZRCSSA6TT3LZH3VZFAVCNFSM6AAAAABJMZSOU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZTGU2DQNRSHA . You are receiving this because you authored the thread.Message ID: @.***>

-- Mariano Goñi https://www.marianogoni.com http://www.marianogoni.com

moononournation commented 2 weeks ago

Oh really?