diff --git a/boards b/boards index edaa081..bd723b8 160000 --- a/boards +++ b/boards @@ -1 +1 @@ -Subproject commit edaa08108b1a75b97415c8cee45d30a2ef77ae92 +Subproject commit bd723b8b2491ab4cd22513db5a197b3f320aaa58 diff --git a/platformio.ini b/platformio.ini index fb3b89b..3942002 100644 --- a/platformio.ini +++ b/platformio.ini @@ -99,8 +99,8 @@ board = esp32-2424S012N [env:esp32-2432S022N] board = esp32-2432S022N -; [env:esp32-2432S022C] -; board = esp32-2432S022C +[env:esp32-2432S022C] +board = esp32-2432S022C [env:esp32-2432S024C] board = esp32-2432S024C diff --git a/src/lvgl_cst816s_i2c.c b/src/lvgl_cst816s_i2c.c index 49de858..60b92d1 100644 --- a/src/lvgl_cst816s_i2c.c +++ b/src/lvgl_cst816s_i2c.c @@ -23,7 +23,7 @@ static void cst816s_lvgl_touch_cb(lv_indev_drv_t *drv, lv_indev_data_t *data) data->point.x = touch_x[0]; data->point.y = touch_y[0]; data->state = LV_INDEV_STATE_PRESSED; - log_d("Pressed at: (%d,%d), strength: %d", data->point.x, data->point.y, touch_strength); + log_d("Pressed at: (%d,%d), strength: %d", data->point.x, data->point.y, touch_strength[0]); } else data->state = LV_INDEV_STATE_RELEASED; diff --git a/src/lvgl_gt911_i2c.c b/src/lvgl_gt911_i2c.c index f2b6f1a..68f6f69 100644 --- a/src/lvgl_gt911_i2c.c +++ b/src/lvgl_gt911_i2c.c @@ -149,7 +149,7 @@ static void gt911_lvgl_touch_cb(lv_indev_drv_t *drv, lv_indev_data_t *data) data->point.x = (touch_x[0] * GT911_TOUCH_CONFIG_X_MAX) / gt_info.xResolution; data->point.y = (touch_y[0] * GT911_TOUCH_CONFIG_Y_MAX) / gt_info.yResolution; data->state = LV_INDEV_STATE_PRESSED; - log_d("Pressed at: (%d,%d), strength: %d", data->point.x, data->point.y, touch_strength); + log_d("Pressed at: (%d,%d), strength: %d", data->point.x, data->point.y, touch_strength[0]); } else data->state = LV_INDEV_STATE_RELEASED; diff --git a/src/lvgl_xpt2046_spi.c b/src/lvgl_xpt2046_spi.c index cb642af..9dd3242 100644 --- a/src/lvgl_xpt2046_spi.c +++ b/src/lvgl_xpt2046_spi.c @@ -23,7 +23,7 @@ static void xpt2046_lvgl_touch_cb(lv_indev_drv_t *drv, lv_indev_data_t *data) data->point.x = touch_x[0]; data->point.y = touch_y[0]; data->state = LV_INDEV_STATE_PRESSED; - log_d("Pressed at: (%d,%d), strength: %d", data->point.x, data->point.y, touch_strength); + log_d("Pressed at: (%d,%d), strength: %d", data->point.x, data->point.y, touch_strength[0]); } else data->state = LV_INDEV_STATE_RELEASED;