reverted back to default coordinates for CST826
This commit is contained in:
parent
f29723c800
commit
33cc74a9f0
|
@ -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];
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue