Hi,
I might be asking for trouble by starting with Windows, but here goes. I wanted to try out LVGL in the Micropython Unix port as the web simulator (which is amazing) is a bit clunky to use.
I followed the README at https://github.com/lvgl/lv_micropython and got to the REPL prompt.
I then typed in the lines under “Super Simple Example”. When I got to disp_drv.register()
I got a Segmentation fault.
Would appreciate any suggestions for debugging or just letting me know if I am trying to do something impossible. Thanks!
MicroPython v1.19.1-652-g7dc70db3a on 2022-10-08; linux [GCC 9.3.0] version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>> import SDL
>>> SDL.init()
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
>>> draw_buf = lv.disp_draw_buf_t()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'lv' isn't defined
>>> import lvgl as lv
>>> draw_buf = lv.disp_draw_buf_t()
>>> buf1_1 = bytearray(480*10)
>>> draw_buf.init(buf1_1, None, len(buf1_1)//4)
>>> disp_drv = lv.disp_drv_t()
>>> disp_drv.init()
>>> disp_drv.draw_buf = draw_buf
>>> disp_drv.f
flush_is_last full_refresh flush_cb flush_ready
>>> disp_drv.flush_cb = SDL.monitor_flush
>>> disp_drv.hor_res = 480
>>> disp_drv.ver_res = 320
>>> disp_drv.re
render_start_cb register
>>> disp_drv.register()
Segmentation fault