lua-scripts icon indicating copy to clipboard operation
lua-scripts copied to clipboard

Virtual controls widget (LVGL Lua dev contest)

Open wimalopaan opened this issue 10 months ago • 0 comments

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 https://github.com/EdgeTX/edgetx/pull/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. tele01

The main screen of the widget to control the virtual inputs and the virtual switches:

controls01 controls02

The settings screen for sliders and buttons:

settings01 settings02 settings03 settings10

The global settings screen:

global01

With PR 5885 this integrates well into EdgeTx:

mixer01 mixer02

wimalopaan avatar Apr 01 '25 11:04 wimalopaan