mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Move touchdriver to old
This commit is contained in:
parent
d556cd86d2
commit
a3aea102cb
@ -31,7 +31,7 @@
|
||||
//#include "ft6x36.h"
|
||||
#endif
|
||||
|
||||
#include "../hasp/hasp.h" // for hasp_sleep_state
|
||||
#include "../../hasp/hasp.h" // for hasp_sleep_state
|
||||
extern uint8_t hasp_sleep_state;
|
||||
static uint8_t drv_touch_rotation;
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include "drv/touch/touch_driver.h"
|
||||
|
||||
//#include "drv/hasp_drv_display.h"
|
||||
// #include "drv/hasp_drv_touch.h"
|
||||
// #include "drv/old/hasp_drv_touch.h"
|
||||
// #include "drv/old/hasp_drv_tft_espi.h"
|
||||
|
||||
#include "hasp_debug.h"
|
||||
@ -209,7 +209,7 @@ void guiSetup()
|
||||
disp_drv.hor_res = tft_width;
|
||||
disp_drv.ver_res = tft_height;
|
||||
|
||||
lv_disp_rot_t rotation[] = {LV_DISP_ROT_NONE, LV_DISP_ROT_270, LV_DISP_ROT_180, LV_DISP_ROT_90};
|
||||
lv_disp_rot_t rotation[] = {LV_DISP_ROT_NONE, LV_DISP_ROT_90, LV_DISP_ROT_180, LV_DISP_ROT_270};
|
||||
lv_disp_t* display = lv_disp_drv_register(&disp_drv);
|
||||
lv_disp_set_rotation(display, rotation[(4 + gui_settings.rotation - TFT_ROTATION) % 4]);
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "hasp_oobe.h"
|
||||
#include "sys/net/hasp_network.h"
|
||||
#include "dev/device.h"
|
||||
// #include "drv/hasp_drv_touch.h"
|
||||
// #include "drv/old/hasp_drv_touch.h"
|
||||
#include "ArduinoLog.h"
|
||||
|
||||
#if HASP_USE_CONFIG > 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user