lvgl / lv_binding_micropython

LVGL binding for MicroPython
MIT License
237 stars 156 forks source link

Touch Calibration ILI9341 in Micropython LVGL V8 not working #346

Open perrer12 opened 2 weeks ago

perrer12 commented 2 weeks ago

Hello,

thanks for the great library.

I would like to use the tcal.py to calibrate my touchscreen, LVGL V8.

I use an ESP32 D1 Mini and an Ili9341 Touch 2.8 inch Touch display.

I use:

disp = ili9341(miso=19, mosi=23, clk=18, dc=27, cs=5, rst=33, power=-1, backlight=-1, mhz=20, width=320, height=240, rot=LANDSCAPE)

and

touch = xpt2046(cs=15, cal_x0=0, cal_x1 = HRES, cal_y0=0, cal_y1 = VRES, transpose=False)

for initialization.

The screen shows the image, but does not react to clicking on the circle.

The above initialization works with other example codes (i.e. touch works), but the calibration is then not correct.

What can I do to calibrate the touch screen?

Many thanks in advance

Perrer