reverted back to default coordinates for CST826

This commit is contained in:
Bassam 2022-10-19 12:56:21 +03:00
parent f29723c800
commit 33cc74a9f0
2 changed files with 8 additions and 2 deletions

View file

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

View file

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