micropython lvgl bindings

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

micropython lvgl bindings

661 Views
dsl400
Contributor I

I am trying to use the `micropython` generated code on an actual device and I am having trouble figuring out what version of `lvgl` to use when compiling `micropython`

I tried compiling with 9.2.1 but the bindings do not seem to match 

`AttributeError: 'animimg' object has no attribute 'set_playback_time'`

0 Kudos
Reply
1 Reply

635 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @dsl400,

Could you please share the project settings as well as the process you take in order to see this issue?

I tried to recreate your issue with a simple project for the MIMXRT1170-EVKB (since I had this board on hand), and added an aimg setting its playback to 0 and 1 (since the issue you describe seems to be related to the playback time). However, I saw no error when running the micropython simulator.

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2159933%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Emicropython%20lvgl%20bindings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2159933%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20trying%20to%20use%20the%20%60micropython%60%20generated%20code%20on%20an%20actual%20device%20and%20I%20am%20having%20trouble%20figuring%20out%20what%20version%20of%20%60lvgl%60%20to%20use%20when%20compiling%20%60micropython%60%3CBR%20%2F%3E%3CBR%20%2F%3EI%20tried%20compiling%20with%209.2.1%20but%20the%20bindings%20do%20not%20seem%20to%20match%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%60AttributeError%3A%20'animimg'%20object%20has%20no%20attribute%20'set_playback_time'%60%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2160100%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20micropython%20lvgl%20bindings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2160100%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F254217%22%20target%3D%22_blank%22%3E%40dsl400%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20share%20the%20project%20settings%20as%20well%20as%20the%20process%20you%20take%20in%20order%20to%20see%20this%20issue%3F%3C%2FP%3E%0A%3CP%3EI%20tried%20to%20recreate%20your%20issue%20with%20a%20simple%20project%20for%20the%20MIMXRT1170-EVKB%20(since%20I%20had%20this%20board%20on%20hand)%2C%20and%20added%20an%20aimg%20setting%20its%20playback%20to%200%20and%201%20(since%20the%20issue%20you%20describe%20seems%20to%20be%20related%20to%20the%20playback%20time).%20However%2C%20I%20saw%20no%20error%20when%20running%20the%20micropython%20simulator.%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E