File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -239,20 +239,20 @@ menu "LVGL Touch controller"
239
239
menu "Touchpanel Configuration (FT6X06)"
240
240
depends on LV_TOUCH_CONTROLLER_FT6X06
241
241
242
- config LV_FT6X36_SWAPXY
243
- bool
244
- prompt "Swap X with Y coordinate."
245
- default y
242
+ config LV_FT6X36_SWAPXY
243
+ bool
244
+ prompt "Swap X with Y coordinate."
245
+ default n
246
246
247
247
config LV_FT6X36_INVERT_X
248
248
bool
249
249
prompt "Invert X coordinate value."
250
250
default n
251
251
252
- config LV_FT6X36_INVERT_Y
253
- bool
254
- prompt "Invert Y coordinate value."
255
- default y
252
+ config LV_FT6X36_INVERT_Y
253
+ bool
254
+ prompt "Invert Y coordinate value."
255
+ default n
256
256
257
257
endmenu
258
258
Original file line number Diff line number Diff line change @@ -182,20 +182,20 @@ bool ft6x36_read(lv_indev_drv_t *drv, lv_indev_data_t *data) {
182
182
last_x = ((data_xy [0 ] & FT6X36_MSB_MASK ) << 8 ) | (data_xy [1 ] & FT6X36_LSB_MASK );
183
183
last_y = ((data_xy [2 ] & FT6X36_MSB_MASK ) << 8 ) | (data_xy [3 ] & FT6X36_LSB_MASK );
184
184
185
- #if CONFIG_LV_FT6X36_SWAPXY
186
- int16_t swap_buf = last_x ;
187
- last_x = last_y ;
188
- last_y = swap_buf ;
189
- #endif
190
185
#if CONFIG_LV_FT6X36_INVERT_X
191
186
last_x = LV_HOR_RES - last_x ;
192
187
#endif
193
188
#if CONFIG_LV_FT6X36_INVERT_Y
194
189
last_y = LV_VER_RES - last_y ;
190
+ #endif
191
+ #if CONFIG_LV_FT6X36_SWAPXY
192
+ int16_t swap_buf = last_x ;
193
+ last_x = last_y ;
194
+ last_y = swap_buf ;
195
195
#endif
196
196
data -> point .x = last_x ;
197
197
data -> point .y = last_y ;
198
198
data -> state = LV_INDEV_STATE_PR ;
199
- ESP_LOGV (TAG , "X=%u Y=%u" , data -> point .x , data -> point .y );
199
+ ESP_LOGD (TAG , "X=%u Y=%u" , data -> point .x , data -> point .y );
200
200
return false;
201
201
}
You can’t perform that action at this time.
0 commit comments