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
warning >>>>------>> TOUCH_CS pin not defined in TFT_eSPI-2.4.50 #1788
Comments
Yes please! |
I came here just to say: I DON'T LIKE THIS WARNING ;-) reason being: my display ST7789 240x240 is not touch screen at all and CS pin is not in use - so I would not expect compilation warning in such case |
// Define in setup to disable all #warnings in library (can be put in User_Setup_Select.h) #define DISABLE_ALL_LIBRARY_WARNINGS
Added capability to stop alerts. // Define in setup to disable all #warnings in library (can be put in User_Setup_Select.h) |
Allow me to chime in here: my CYD device (cyd2usb) has capacitive touch and I'm wondering why I get this warning and the message that touch functions will not be available.
platform.ini:
|
samesies! its weird! ive defined the touch_cs pin in user_setup.h so im confused... |
I would also be in favor of a #define NOTOUCH, because I am not able to find a clean solution. |
Hello,
I like warnings, it often avoids problems.
on the other hand, this is only valid if the screen actually has a touch .
otherwise, the warning appears for any screen without touch.
it would be wise to include in the xxxx_defines.h file screens without touch for example
#define NOTOUCH
and in the TFT_eSPI.h on line 875
#elif!defined(NO_TOUCH)
#warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available!
#endif
moreover, nothing prevents including a #define NOTOUCH manually in the User_Setup.h file in the case of non-use of the touch function of a screen which would be equipped with it.
What do you think ?
Regards,
Stéphane
The text was updated successfully, but these errors were encountered: