Virtual controls widget (LVGL Lua dev contest) #33
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 widget mainly manipulates the virtual controls as described in this PR EdgeTX/edgetx#5885.
Virtual controls (virtual inputs and virtual switches) are non-physical inputs/switches for the radio. The main purpose is to extend the number of controls by use of virtual controls.
This widget can manipulate these virtual controls by means of up to 16 sliders and/or 64 buttons (normal, momentary or toggle).
If no virtual controls are available (firmware / simulator without that PR), it is still useful as it can also manipulate the
shm
variables: these variables serve as a data exchange between widgets and mixer-scripts.The main telemetry screen in EdgeTx: this widget is in the upper right.

The main screen of the widget to control the virtual inputs and the virtual switches:
The settings screen for sliders and buttons:
The global settings screen:
With PR 5885 this integrates well into EdgeTx: