lvgl / lv_binding_micropython

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

AttributeError: espidf object has no attribute 'spi_pre_cb_isr' #102

Closed hn82123 closed 3 years ago

hn82123 commented 3 years ago

When we use the hybrid=false mode, with esp32 and ili9341, the execution got an error:

File "ili9XXX.py", line 171, in disp_spi_init AttributeError: 'module' object has no attribute 'spi_pre_cb_isr'

This error points to the code:

devcfg.pre_cb = esp.spi_pre_cb_isr
devcfg.post_cb = esp.spi_post_cb_isr

And I can't find the function registration in the generated module .C file

amirgon commented 3 years ago

Hi @hn82123 ! Thank you for reporting this. It has been long time since I last tried the non-hybrid version. As you noticed, it is broken. I'm fixing it now.