Skip to content

Commit

Permalink
Merge pull request #6 from druckgott/t16s
Browse files Browse the repository at this point in the history
add tx16s config
  • Loading branch information
druckgott authored Oct 13, 2024
2 parents 4f3a258 + 2a9d96b commit adfc778
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ A simple widget to display switches which are configured in special function and

## Requirements
* Tested on Jumper T15 with EdgeTX 2.10.4 only
* Currently, there is a config file for Jumper T15. You are welcome to generate your own config file WIDGETS\getswitches\radio.
* Currently, there is a config file for Jumper T15 and Radiomaster tx16s. You are welcome to generate your own config file WIDGETS\getswitches\radio.
* the name will be shown if you have no config
* you are welcome to commit a config for your radio here
* as example you can take the t15.lua config and only change the position values and so on
* other people can use your config then

## Other informations
* If a switch have two sound file on one switch it will toggle the two ore more soundfilenames. You can change the time for toggling in the WIDGETS config
* Radio config is already done for T15, here is the example:
* Radio config is already done for T15 and tx16s, here is the example of T15:

![t15 config screenshot](doc/img/t15_config.png)
50 changes: 50 additions & 0 deletions scr/WIDGETS/getswitches/radio/tx16s.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
return {
-- Tabelle für die Switches
sw = {
-- switch A
{ switchcfgname = "SA", switchcfgpos_x = 20, switchcfgpos_y = 175, u = CHAR_UP, m = '-', d = CHAR_DOWN },
-- switch B
{ switchcfgname = "SB", switchcfgpos_x = 100, switchcfgpos_y = 115, u = CHAR_UP, m = '-', d = CHAR_DOWN },
-- switch C
{ switchcfgname = "SC", switchcfgpos_x = 280, switchcfgpos_y = 115, u = CHAR_UP, m = '-', d = CHAR_DOWN },
-- switch D
{ switchcfgname = "SD", switchcfgpos_x = 360, switchcfgpos_y = 175, u = CHAR_UP, m = '-', d = CHAR_DOWN },
-- switch E
{ switchcfgname = "SE", switchcfgpos_x = 20, switchcfgpos_y = 20, u = CHAR_UP, m = '-', d = CHAR_DOWN },
-- switch F
{ switchcfgname = "SF", switchcfgpos_x = 130, switchcfgpos_y = 10, u = CHAR_UP, d = CHAR_DOWN },
-- switch G
{ switchcfgname = "SG", switchcfgpos_x = 360, switchcfgpos_y = 20, u = CHAR_UP, m = '-', d = CHAR_DOWN },
-- switch H
{ switchcfgname = "SH", switchcfgpos_x = 250, switchcfgpos_y = 10, u = CHAR_UP, m = '-', d = CHAR_DOWN },
-----------------------------------------------------------------------------------------------------
-- switch SW1
--{ switchcfgname = "SW1", switchcfgpos_x = 80, switchcfgpos_y = 250, u = CHAR_UP, d = CHAR_DOWN },
-- switch SW2
--{ switchcfgname = "SW2", switchcfgpos_x = 160, switchcfgpos_y = 250, u = CHAR_UP, d = CHAR_DOWN },
-- switch SW3
--{ switchcfgname = "SW3", switchcfgpos_x = 160, switchcfgpos_y = 225, u = CHAR_UP, d = CHAR_DOWN },
-- switch SW4
--{ switchcfgname = "SW4", switchcfgpos_x = 260, switchcfgpos_y = 225, u = CHAR_UP, d = CHAR_DOWN },
-- switch SW5
--{ switchcfgname = "SW5", switchcfgpos_x = 260, switchcfgpos_y = 250, u = CHAR_UP, d = CHAR_DOWN },
-- switch SW6
--{ switchcfgname = "SW6", switchcfgpos_x = 340, switchcfgpos_y = 250, u = CHAR_UP, d = CHAR_DOWN },

},
--
widget_area_x = 480,
widget_area_y = 227,
--
switch_box_size_x = 100,
switch_box_size_y = 50,
switch_box_size_radius = 15,
--
switch_push_size_x = 60,
switch_push_size_y = 20,
switch_push_size_radius = 5,
--
pos_switch_offset_up = 0,
pos_switch_offset_center = 15,
pos_switch_offset_down = 30,
}

0 comments on commit adfc778

Please sign in to comment.