Eliminating warnings #1109
bobwolff68
started this conversation in
General
Replies: 1 comment 1 reply
-
There was a typo in the Setup.h from a recent update that I have corrected. Some displays have the same driver but different widths and heights are available. The width and height only needs to be specified for those types. See here. For these displays the #ifdef approach proposed is used, however for consistency this approach could have been used for all display types but this can lead to problematic "user" defines because the library expects the width and height to be defined portrait mode. For other displays driver types the width and height defaults should be fine so these do not need to be duplicated in the setup configuration. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I'm a new user to your library - switching over from the Adafruit setup. Very nice library, btw. Super impressed by its depth and breadth.
I'm using an ESP32 + ILI9341 display building from PlatformIO.
I do try to keep warnings out of my compiles so that when a warning does come along I see it and can decide if it is significant. I've been bitten by "too much noise" in my past - having warnings always present in my compilations causing me to not see a new one which might be important. :)
So, I'm seeing warnings about re-definitions. It's a byproduct of using the compiler's "-D" to define things like TFT_WIDTH
The offending source file in my case is ILI9341_Defines.h
If using the compiler '-D' is the preferred/supported method of doing things, might I suggest doing an
#ifndef
around these redefinitions?I'd be happy to give a pull request on the ones I find if that's helpful. I understand to do a 'complete' job at this it would impact other header files for hardware I'm not using etc. Let me know!
Beta Was this translation helpful? Give feedback.
All reactions