Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LVGL] Allow Arc Range min and Range max to be assignable #383

Closed
scruplelesswizard opened this issue May 26, 2024 · 4 comments
Closed

[LVGL] Allow Arc Range min and Range max to be assignable #383

scruplelesswizard opened this issue May 26, 2024 · 4 comments
Assignees
Milestone

Comments

@scruplelesswizard
Copy link

Is your feature request related to a problem? Please describe.

I have several arc widgets that are embedded in user widgets for reuse. However, the range for those arc widgets is dynamic based on other variables (i.e. two servos are configured, one with a 180 degree arc, and the other with a 270 degree arc. Each instance of the user widget controls one of the servos.)

Describe the solution you'd like

I want to be able to add an input to the arc widget and assign that input to the value of Range min and Range max

Describe alternatives you've considered

  • Reconfigure the widget dynamically at runtime

Additional context

  • None
@mvladic
Copy link
Contributor

mvladic commented May 27, 2024

Just to clarify, "Assignable" is used when the property has read/write semantics, such as the "Value" property in the Arc widget, because the Widget can also set a "Value". In the case of "Range min" and "Range max", when the widget never changes them, it will be Expression (if using EEZ Flow) or Variable (if not using EEZ Flow).

I will add this in the next version.

@scruplelesswizard
Copy link
Author

scruplelesswizard commented May 27, 2024

Expression or variable would be fantastic! Thank you ❤️

If there is anything I can do to help with a PR please let me know

mvladic added a commit that referenced this issue Jun 7, 2024
@mvladic
Copy link
Contributor

mvladic commented Jun 7, 2024

Done.

@prasimix prasimix closed this as completed Jun 7, 2024
@scruplelesswizard
Copy link
Author

scruplelesswizard commented Sep 22, 2024

Thank you! This is amazing ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants