Multiswitch widget (LVGL Lua dev contest) #35
Closed
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.
This PR is a submission to the
lvgl
LUA script dev contest.It shows the use of most of the new
lvgl
UI controls available with EdgeTx 2.11.What is the purpose of this widget?
This widgets controls a so-called multiswitch inside a model. A multiswitch is a device that is most popular in the field of ship/crawler/functional-models, and its purpos is to switch on/off multiple electronic motors, LEDs, ... inside the model.
This widget controls a multiswitch via the
CRSF
protocol (ExpressLRS): https://github.com/wimalopaan/Electronics?tab=readme-ov-file#elrs_msw (or via ACCST/AFHDS2A andSBus
).Multiple instances of this widget can control multiple multiswitches inside a model, upto 255 theoretically.
The main telemetry view (bottom left):

The control screen of the widget:

The settings screen of the widget:

The gloabl settings screen of the widget:
