You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to test the newer master branch and encountered following issue when running the example in the readme.
import lvgl as lv
lv.init()
from lv_utils import event_loop
Traceback (most recent call last):
File "", line 1, in
File "lv_utils.py", line 45, in
RuntimeError: Missing machine.Timer implementation!
It looks like it is using the fallback in the lv_timer if machine.Timer is not available. This leads to binding the timer from libc.so/librt.so via FFI which is not available under Mac OS.
I also tried running the example without the event_loop but there is no window showing up after after "disp_drv = lv.sdl_window_create(320,240)".
In version 8 of lvgl I could get lv_micropython to work without problems.
The text was updated successfully, but these errors were encountered:
The event loop is required for version 9 of lvgl on all platforms, whether embedded or not. Since Micropython Timer and libc.so/librt.so timer functions are missing for MacOS, it seems that we'll need to implement a MacOS-specific Timer class in the same manner as lv_timer.py implements it for Linux and Linux-like systems.
Would you like to give implementing this a try? If you or anyone else would like to attempt it, I'd be happy to review a pull request.
I was trying to test the newer master branch and encountered following issue when running the example in the readme.
import lvgl as lv
lv.init()
from lv_utils import event_loop
Traceback (most recent call last):
File "", line 1, in
File "lv_utils.py", line 45, in
RuntimeError: Missing machine.Timer implementation!
It looks like it is using the fallback in the lv_timer if machine.Timer is not available. This leads to binding the timer from libc.so/librt.so via FFI which is not available under Mac OS.
I also tried running the example without the event_loop but there is no window showing up after after "disp_drv = lv.sdl_window_create(320,240)".
In version 8 of lvgl I could get lv_micropython to work without problems.
The text was updated successfully, but these errors were encountered: