Replacing Adafruit_GFX with Arduino_GFX? #237
Replies: 4 comments 3 replies
-
you can replace |
Beta Was this translation helpful? Give feedback.
-
I appreciate the quick response. I tried But I got a similar error: `Arduino_ILI9488 tft conflicting declaration 'Arduino_ILI9488 tft'` Your library is fantastic and your work is much appreciated. I guess I need to convert my old code to the pointer to the class and continue. I am curious what the Arduino_TFT.h file is for. This seems close to what I was hoping for. Is there a way to create a class that wrappers the library calls to use the class like the Adafruit_GFX library. Thanks, Mike. |
Beta Was this translation helpful? Give feedback.
-
Interesting. I will give it another try in a smaller project.
Thanks.
On Dec 18, 2022, at 7:55 PM, moononournation ***@***.***> wrote:
I have tested Arduino_ILI9488 tft = Arduino_ILI9488(bus, DF_GFX_RST, 3 /* rotation */, true /* IPS */);, it should compile without error.
—
Reply to this email directly, view it on GitHub<#237 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACP6FU55G354RVK4QXDKKDLWN657BANCNFSM6AAAAAAS64GR4U>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
That worked! Thanks so much for your patience and your wonderful library. |
Beta Was this translation helpful? Give feedback.
-
I have an older project that we used Adafruit_GFX. So there are many calls in my code that use
tft.foo()
The Arduino_GFX uses
gfx->foo()
Is there a way to define the tft class to use this way rather than a pointer notation?
The alternative is to replace all "tft." in my code with "gfx->" which shouldn't be a problem. I see Arduino_TFT.h which looks like the place that does this, but I can't make it work this way.
Are there any examples for how to setup a class like this?
Arduino_TFT tft
so that the code can be reused?
tft.begin();
Thanks,
Mike.
Beta Was this translation helpful? Give feedback.
All reactions