I am having a hard time calibrating the display , The example of calibration is not working as Make fails
I tried few things but I didn’t get the touch calibrated
I am running default configs with the ili9341 display and xpt 2046 touch controller res = 320x240
Didnt make any changes at all in the example sketch
example sketch - esp32+display
the issue is explained here with images display issue
It’s okay this time, but for the record, please do not skip filling out the template - issues that don’t use the template are more likely to be ignored as they usually contain incomplete information.
Similary to `lv_conf.h` there is a configuration file for the examples too. It is called `lv_ex_conf.h`.
1. Copy `lv_examples/lv_ex-conf_templ.h` next to `lv_examples` directory
2. Rename is to `lv_ex_conf.h`
3. Delete the first `#if` and last `#endif` to enable the files content
4. Enable or Disable modules
Disabled LV_USE_DEMO 0 and LV_USE_TPCAL 1
and made these changes
Gives me error :
error: implicit declaration of function ‘tpcal_create’; did you mean ‘lv_arc_create’? [-Werror=implicit-function-declaration]
tpcal_create();
^~~~~~~~~~~~
lv_arc_create
If you disable LV_USE_TPCAL then tpcal_create will probably be implicitly declared, since it’s disabled and not being compiled in. Also double-check that you included the relevant header file.
error: implicit declaration of function ‘tpcal_create’; did you mean ‘lv_arc_create’? [-Werror=implicit-function-declaration]
tpcal_create();
^~~~~~~~~~~~
lv_arc_create
so everything is default just commented out demo_create();
and update lv_ex_conf.h (where I enabled tpcal)
I’ve checked the XPT2046 driver again and all the issue comes from xpt2046_corr tries to correct the coordinates. While running the calibration, lets skip xpt2046_corr. Just comment out xpt2046_corr(&x, &y);. Now you should get points like 100 and 3000.