Move touchdriver to old

This commit is contained in:
fvanroie 2021-06-01 00:20:53 +02:00
parent d556cd86d2
commit a3aea102cb
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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]);

View File

@ -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