jakpaul / lvgl_touch_calibration

A complete lvgl screen object for performing calibration of a resistive touch panel.
MIT License
24 stars 8 forks source link

feature/idf_component | Make this repo a IDF component + other inclusions #3

Closed hiruna closed 1 year ago

hiruna commented 1 year ago

Context

This repo was very helpful to calibrate my resisitive touch display that I'm using, however it could be improved by converting this repo into a ESP-IDF component such that projects can import this as an IDF component (via component manager or as a git submodule). This PR includes the neccessary files required to do this.

Additional changes

Kconfig

I have also included a Kconfig file to allow for configuration via the ESP Project Configuration (i.e. menuconfig). image

UI Text Overrides

image

Timeouts

image

Custom Calibration Points

image image

NVS Configuration

image

Calibration Coefficients

image image image

Log output of the calibrated coefficients

image

Reference to my testing I've been doing in the past few days: https://github.com/lvgl/lvgl_esp32_drivers/issues/222

Usage of this repo/my fork: https://github.com/hiruna/lv_port_esp32/tree/develop/lvgl_8.3.7_idf_5.2

jakpaul commented 1 year ago

Thanks for your contribution! This is a valid improvement, so I am merging. Just going to make sure to keep compatibility with other build systems by adding some macros in lv_tc.c.

jakpaul commented 1 year ago

Done: c5734d304014fd6440f7aaf014a23b2ac34d8e7b

hiruna commented 1 year ago

thanks for the review! i'll close this off