mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Update driver path
This commit is contained in:
parent
79467a8846
commit
b4a901ef9a
@ -3,23 +3,23 @@
|
||||
#include "lvgl.h"
|
||||
|
||||
#if TOUCH_DRIVER == 2046
|
||||
#if defined(USE_FSMC)
|
||||
#else
|
||||
#include "tft_espi_drv.h"
|
||||
#endif
|
||||
#if defined(USE_FSMC)
|
||||
#else
|
||||
#include "tft_espi_drv.h"
|
||||
#endif
|
||||
|
||||
#elif TOUCH_DRIVER == 2046
|
||||
#include "indev/XPT2046.h"
|
||||
#include "indev/XPT2046.h"
|
||||
#elif TOUCH_DRIVER == 0x2046B
|
||||
#include "hasp_drv_xpt2046.h"
|
||||
#include "drv/touch/hasp_drv_xpt2046.h"
|
||||
#elif TOUCH_DRIVER == 911
|
||||
#include "hasp_drv_gt911.h"
|
||||
#include "drv/touch/hasp_drv_gt911.h"
|
||||
#elif TOUCH_DRIVER == 0xADC
|
||||
#include "hasp_drv_ft6336u.h"
|
||||
#include "drv/touch/hasp_drv_ft6336u.h"
|
||||
#elif TOUCH_DRIVER == 5206
|
||||
#include "hasp_drv_ft5206.h"
|
||||
#include "drv/touch/hasp_drv_ft5206.h"
|
||||
#elif TOUCH_DRIVER == 6336
|
||||
#include "hasp_drv_ft6336u.h"
|
||||
#include "drv/touch/hasp_drv_ft6336u.h"
|
||||
#else
|
||||
//#include "tp_i2c.h"
|
||||
//#include "ft6x36.h"
|
||||
@ -34,12 +34,12 @@ void drv_touch_init(uint8_t rotation)
|
||||
drv_touch_rotation = rotation;
|
||||
|
||||
#if TOUCH_DRIVER == 2046 // XPT2046 Resistive touch panel driver
|
||||
#if defined(USE_FSMC)
|
||||
#if defined(USE_FSMC)
|
||||
xpt2046_init(rotation);
|
||||
#else
|
||||
// The display driver takes care of all initializations
|
||||
// tft_espi_init(rotation);
|
||||
#endif
|
||||
#else
|
||||
// The display driver takes care of all initializations
|
||||
// tft_espi_init(rotation);
|
||||
#endif
|
||||
|
||||
#elif TOUCH_DRIVER == 911
|
||||
GT911_init();
|
||||
|
@ -6,9 +6,9 @@
|
||||
|
||||
#if TOUCH_DRIVER == 5206
|
||||
|
||||
#define FT5206_address 0x38
|
||||
#define FT5206_address 0x38
|
||||
|
||||
#include "log/hasp_debug.h" // for TAG_DRVR
|
||||
#include "hasp_debug.h" // for TAG_DRVR
|
||||
|
||||
bool FT5206_getXY(int16_t * touchX, int16_t * touchY, bool debug);
|
||||
void FT5206_init();
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#if TOUCH_DRIVER == 6336
|
||||
|
||||
#include "log/hasp_debug.h" // for TAG_DRVR
|
||||
#include "hasp_debug.h" // for TAG_DRVR
|
||||
|
||||
bool FT6336U_getXY(int16_t * touchX, int16_t * touchY, bool debug);
|
||||
void FT6336U_init();
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#if TOUCH_DRIVER == 911
|
||||
|
||||
#include "log/hasp_debug.h" // for TAG_DRVR
|
||||
#include "hasp_debug.h" // for TAG_DRVR
|
||||
|
||||
bool GT911_getXY(int16_t * touchX, int16_t * touchY, bool debug);
|
||||
void GT911_init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user