achillhasler / TFT_eTouch

generic touch support for resistive chips
31 stars 10 forks source link

Apparent error in TFT_eTouchUser.h #7

Open exVetdenteu opened 8 months ago

exVetdenteu commented 8 months ago

TFT_eTouchUser.h : Lines 68-70

ifdef TOUCH_CS // was ifdef - obviously error

error undef TOUCH_CS in TFT_eSPI UserSetup.h for using TFT_eTouch

endif

ifdef should be ifndef

achillhasler commented 5 months ago

The define TOUCH_CS is used when you use the touch functionality of TFT_eSPI. When you use my Touch library TFT_eTouch you have to define TFT_ETOUCH_CS, not TOUCH_CS. When compiling TFT_eSPI you see: #warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available! And that's fine when you use TFT_eTouch