diff --git a/lvgl_touch/CST816.c b/lvgl_touch/CST816.c index 54dad47..e119b0e 100644 --- a/lvgl_touch/CST816.c +++ b/lvgl_touch/CST816.c @@ -78,6 +78,12 @@ bool cst816_read(lv_indev_drv_t *drv, lv_indev_data_t *data) { uint8_t data_raw[8] ; _cst816_i2c_read(CST816_addr, 0x01, data_raw, 6); + // printf("Touch data: "); + // for(int i = 0; i < 6; i++) + // { + // printf("0x%02X ", data_raw[i]); + // } + // printf("\r\n"); uint8_t gestureID = data_raw[0]; uint8_t points = data_raw[1]; diff --git a/lvgl_touch/Kconfig b/lvgl_touch/Kconfig index dfa0ab9..267a66d 100644 --- a/lvgl_touch/Kconfig +++ b/lvgl_touch/Kconfig @@ -463,12 +463,12 @@ menu "LVGL Touch controller" config LV_SWAPXY_CST816 bool prompt "Swap X with Y coordinate." - default y + default n config LV_INVERT_X_CST816 bool prompt "Invert X coordinate value." - default y + default n config LV_INVERT_Y_CST816 bool