Multiple instances of TFT_eSPI to work with two displays #3033
Unanswered
Florin196
asked this question in
Q&A - General
Replies: 2 comments
-
The library does not support multiple instances. The screen update in LVGL is just a simple buffer copy so options are:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Many thanks for your prompt reply and good suggestions. I will look into option 3.Under option 1, I was not to able to have two lvgl animations running in parallel. The project will included in a larger system running on a SoC and option 2 is not possible.Kind regards,FlorinOn Dec 12, 2023, at 5:09 AM, Bodmer ***@***.***> wrote:
The library does not support multiple instances. The screen update in LVGL is just a simple buffer copy so options are:
manage the CS line in the sketch
Processors are so cheap that one per screen may be an option
Create a new library with just buffer transfer
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
I have a quick question on how to initiate two instances of TFT_eSPI to work with two simiar displays (GC9A01). Is there any way to set the two TFT_CSs from my Arduino ino file for each instance of the TFT_eSPI?
I manage to have my code working controlling the CSs with digialWrite() but this is not a good solution given that I use LVGL and I defined two separate displays.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions