Skip to content
Discussion options

You must be logged in to vote

In order to make it all work properly you need to add a loop at the end of the file you are passing when executing the binary.


import time

while True:
    time.sleep_ms(5)
    lcd_bus._pump_main_thread()

That needs to be added because of how micropython is written. when running the binary without passing a filename the repl loads and it will loop. during hat loop it check to see if there are any scheduled tasks that need to run in the main thread. This is an important piece because a task gets scheduled to run in order for LVGL to update. when passing in a file name the repl is bypassed so no loop occurs. Now you simply cannot add a loop at the end of the file you want to run because n…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@glennra
Comment options

@kdschlosser
Comment options

Answer selected by glennra
Comment options

You must be logged in to vote
1 reply
@kdschlosser
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants