lvgl / lvgl_esp32_drivers

Drivers for ESP32 to be used with LVGL
MIT License
340 stars 287 forks source link

ft6x36 invert before swap can lead to negetive numbers #110

Closed morganrallen closed 3 years ago

morganrallen commented 3 years ago

The ft6x36_read function call has three CONFIG_ checks to perform INVERT_X, INVERT_Y and SWAPXY. It appears because the swap happens after the inversions it can result in negative numbers. To get it working for myself I just changed the order, but I suspect this might vary from one setup to another.

C47D commented 3 years ago

Hi @morganrallen, Does the fix in #118 solves the issue? I've merged the suggested fix in master.

morganrallen commented 3 years ago

Yup, looks good

C47D commented 3 years ago

Can we close the issue?