mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Check LGFX_USE_V1 as last option
This commit is contained in:
parent
4f2e3e5921
commit
155b1d1713
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user