When I call the anim.set_exec_cb
method, no matter what kind of function I pass in, it throws an error SyntaxError: Cannot convert 'function' to pointer!
. I’ve tried using a lambda function as well, but it doesn’t work. Is animation not supported?
my repl:
LVGL (9.2.2) MicroPython (1.24.1) Binding compiled on 2025-01-01; Generic ESP32S3 module with ESP32S3
Without seeing the specific code involved, it’s hard to diagnose, but while reading the docs for other things I’m working on here, I noticed this post and thought I’d copy/paste a line from it so maybe you can compare your lambda versus the example (from 2021, maybe out of date now)
anim.set_custom_exec_cb(lambda a, v: target.set_x(v))
from this post:
https://forum.lvgl.io/t/getting-the-animated-object-in-custom-exec-cb/4379/3
I’ve encountered this situation as well, and in the animation section, many functions and attributes don’t match the C language APIs. The lack of MicroPython examples from the LVGL official side has been quite frustrating for me.