Hello everyone, I have encountered the following issue. I have compiled the firmware for the ESP32-2432S08 module , and I have managed to get the display working, but I am unable to make the touchscreen function. Here is my code:
import lvgl as lv
import espidf as esp
from ili9XXX import ili9341
from xpt2046 import xpt2046
lv.init()
disp = ili9341(spihost=esp.HSPI_HOST, miso=12, mosi=13, clk=14, cs=15, mhz=10, width=240, height=320, dc=2, rst=-1, power=-1, factor=8, backlight=21, backlight_on=1)
touch = xpt2046(miso=39, mosi=32, cs=25, spihost=esp.HSPI_HOST, mhz=5, max_cmds=16)
scr = lv.obj()
btn = lv.button(scr)
btn.align(lv.ALIGN.CENTER, 0, 0)
label = lv.label(btn)
label.set_text('Hello World!')
lv.screen_load(scr)
It produces the following error.:
Traceback (most recent call last):
File âmain.pyâ, line 13, in
File âxpt2046.pyâ, line 29, in init
AttributeError: âlv_display_tâ object has no attribute âget_hor_resâ
I hope you can help me. Thank you.