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