Check LGFX_USE_V1 as last option

This commit is contained in:
fvanroie 2022-02-12 15:04:25 +01:00
parent 4f2e3e5921
commit 155b1d1713

View File

@ -48,10 +48,7 @@ class BaseTouch {
#define TOUCH_DRIVER -1 // No Touch #define TOUCH_DRIVER -1 // No Touch
#endif #endif
#if defined(LGFX_USE_V1) if TOUCH_DRIVER == 0x2046 && defined(USER_SETUP_LOADED)
#warning Building for LovyanGfx Touch
#include "touch_driver_lovyangfx.h"
#elif TOUCH_DRIVER == 0x2046 && defined(USER_SETUP_LOADED)
#warning Building for XPT2046 #warning Building for XPT2046
//#include "touch_driver_xpt2046.h" //#include "touch_driver_xpt2046.h"
#include "touch_driver_tftespi.h" #include "touch_driver_tftespi.h"
@ -73,6 +70,9 @@ class BaseTouch {
#elif TOUCH_DRIVER == 0x1680 #elif TOUCH_DRIVER == 0x1680
#warning Building for GSL1680 #warning Building for GSL1680
#include "touch_driver_gslx680.h" #include "touch_driver_gslx680.h"
#elif defined(LGFX_USE_V1)
#warning Building for LovyanGfx Touch
#include "touch_driver_lovyangfx.h"
#else #else
#warning Building for Generic Touch #warning Building for Generic Touch
using dev::BaseTouch; using dev::BaseTouch;