I’m creating an arc as an indicator only. I mapped a custom knob to use. The image does show up, and when I do “basically” the same thing on another arc, the custom image moves as it should (but that’s an input arc). So, this arc does not have an update callback, there’s no need I don’t think.
I have bound the arcs value to another variable. (which used to also work)
The question is, with a simple arc, with a imaged mapped to the knob, will it use/move the custom image, relative with the bound value? The default knob works. But so far, not the mapped knob when I use a bound value. Which kinda makes sense, since there’s nothing to update the knob. But the default knob works, and all I’m (supposed to be) doing is changing the image.
But, as I mentioned, it USED to work. At least I’m pretty sure it did. It broke somewhere down the line, when I got other stuff working…
So I’m wondering, before I spend more time on it, should it work or not? The built in knob works just fine, but I just can’t get the custom image knob to work. The other arc with a callback works, but this one doesn’t really need one.
Yes it should work with an image as the knob. See the example below where I have two arcs. The right arc has an image as the knob and when moving the left arc both of the arcs move using the same subject for binding the arcs value.
Thank you kindly for that answer.
I thought I had it working like that, it was automatically changing the value similar to what you have. But somewhere down the line, it stopped.
That’s why I had the question, maybe it wasn’t doing what I thought it was.
I’ll have to go back and look at it again. I have it working, but I am manually setting the knob in the call back. Works, but…
Thanks.
This is a newer pattern generated by the LVGL Editor to support reusable components.
When more instances of the component are created, the same style is reused instead of being re-initialized each time. LVGL doesn’t automatically guard against double init, so this check ensures the style is set up once and shared across new components, keeping things efficient and consistent.