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

TFT_eSPI tft.drawLine() getting stuck when executed inside loop() #3504

Open
AlanChatflix opened this issue Oct 12, 2024 · 1 comment
Open

Comments

@AlanChatflix
Copy link

TFT_eSPI tft.drawLine() is getting stuck when executed inside loop().
And it's not related to delay, it's stuck in the first time it tries to drawLine and loop no longer executes, so it's not even getting new events at the same time.
I'm using an ESP32-S3 with a ST7789.
Important: tft.drawLine() WORKS NORMALLY if I execute anywhere else like on setup. But if it's a function that was called inside loop() (even with tasks pinned to a core and queue) it will still get stuck.
The very same code works normally if using ESP32-C6 with the very same display.
(ESP32-C6 is single core. maybe TFT_eSPI has a bug with drawLine on multiple core? Still doesn't make sense to work on setup but not on loop())
Why?

@AlanChatflix
Copy link
Author

Btw, it gets stuck here:
DC_C; tft_Write_8(TFT_CASET);
No error. It's like an infinite loop when executing this line.

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

1 participant