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

Display: Support 'class' for array/struct properties #2302

Merged
merged 7 commits into from
Jun 21, 2022

Conversation

kasemir
Copy link
Collaborator

@kasemir kasemir commented Jun 21, 2022

Widget classes used to only support scalar properties like X position, Width, "On" color of a binary LED.

Now classes can be used with array/struct properties like the list of symbol files for a Symbol widget or the states of a MultiStateLED.

In the class editor, the whole array can be selected to be included in the class definition
class_edit

When then editing displays, selecting the class applies the complete array to the widget
class_use

Similar example: Multi state LED with states set by class
class_use2

Fixes #2297

@kasemir kasemir merged commit 161d97a into master Jun 21, 2022
@kasemir kasemir deleted the display_array_class_2297 branch June 21, 2022 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multistate LED: Define states in class
1 participant