Add modifiers to MobiFlight Configuration #909
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
So far MobiFlight provided a very static way of modifying values. We had "transform", "compare" and "interpolation" - in this exact static order. With the concept of "modifiers" this will allow for more flexibility in the future:
The first additional modifier is "blink" which allows to let any value blink by applying a sequence of ON and OFF. ON and OFF duration can be defined. Other can be used for "padding", "text-alignment", etc.
This PR does not yet provide a UI for Blink. But the configuration can be added
This configuration will let the value blink with a sequence of 200ms ON, 200ms OFF, 400ms ON and 200ms OFF.
The value for the OFF is defined by "blinkValue", in this case a space.
fixes #119
Confirmations:
Breaking Changes: