feat: Add initial Jumper T20 support (#3726)

* Jumper T20

* Fix center beeps

* Add option to pinch top trim as well to bootloader

* chore: Regenerate yaml

* chore: Add entry for Buddy

* Jumper T20

* Foldable section for fonction swith and fix preflight pot checks

* Remove duplicated entry

* Rename "function switches" to "customizable switches"

* chore: Add translations

* chore: Update translations

* chore: Update Companion translations/wording
This commit is contained in:
3djc
2023-07-07 10:44:14 +10:00
committed by GitHub
parent ab5f44bacf
commit 7f669f12d9
74 changed files with 1504 additions and 174 deletions
+3 -1
View File
@@ -21,13 +21,15 @@ TRIMS = [
{ "name": "T4", "dec": "RHL", "inc": "RHR", "input": "RH" },
{ "name": "T5", "dec": "LSD", "inc": "LSU" },
{ "name": "T6", "dec": "RSD", "inc": "RSU" },
{ "name": "T7", "dec": "T7L", "inc": "T7R" },
{ "name": "T8", "dec": "T8D", "inc": "T8U" },
# Surface
{ "name": "T1", "dec": "T1L", "inc": "T1R", "input": "ST" },
{ "name": "T2", "dec": "T2L", "inc": "T2R", "input": "TH" },
{ "name": "T3", "dec": "T3L", "inc": "T3R"},
{ "name": "T4", "dec": "T4L", "inc": "T4R"},
{ "name": "T5", "dec": "T5L", "inc": "T5R" },
{ "name": "T6", "dec": "T6L", "inc": "T6R" },
{ "name": "T6", "dec": "T6D", "inc": "T6U" },
]
KEYS = [
+59
View File
@@ -293,6 +293,65 @@ LEGACY_NAMES = [
}
}
},
{
"targets": {"t20"},
"inputs": {
"LH": {
"yaml": "Rud"
},
"LV": {
"yaml": "Ele"
},
"RV": {
"yaml": "Thr"
},
"RH": {
"yaml": "Ail"
},
"P1": {
"yaml": "POT1",
"lua": "s1",
"label": "S1",
"short_label": "1",
"description": "Potentiometer 1"
},
"P2": {
"yaml": "POT2",
"lua": "s2",
"label": "S2",
"short_label": "2",
"description": "Potentiometer 2"
},
"SL1": {
"yaml": "SLIDER1",
"lua": "s3",
"label": "S3",
"short_label": "3",
"description": "Potentiometer 3"
},
"SL2": {
"yaml": "SLIDER2",
"lua": "s4",
"label": "S4",
"short_label": "4",
"description": "Potentiometer 4"
},
"SL3": {
"yaml": "SLIDER3",
"lua": "sl",
"label": "SL",
"short_label": "L",
"description": "Right finger slider"
},
"SL4": {
"yaml": "SLIDER4",
"lua": "sr",
"label": "SR",
"short_label": "R",
"description": "Right finger slider"
}
}
},
{
"targets": {"x9lite","x9lites"},
"inputs": {
+8
View File
@@ -13,6 +13,14 @@ POT_CONFIG = {
"P1": { "default": "WITH_DETENT" },
"P2": { "default": "WITH_DETENT" }
},
"t20": {
"P1": { "default": "WITH_DETENT" },
"P2": { "default": "WITH_DETENT" },
"SL1": { "default": "SLIDER_WITH_DETENT" },
"SL2": { "default": "SLIDER_WITH_DETENT" },
"SL3": { "default": "SLIDER_WITH_DETENT" },
"SL4": { "default": "SLIDER_WITH_DETENT" },
},
"t12": {
"P1": { "default": "WITHOUT_DETENT" },
"P2": { "default": "WITHOUT_DETENT" }
+14
View File
@@ -112,6 +112,20 @@ SWITCH_CONFIG = {
"SF": { "default": "2POS", "display": [ 1, 2 ] },
"SH": { "default": "TOGGLE", "display": [ 1, 3 ] },
},
"t20": {
# left side
"SA": { "default": "2POS", "display": [ 0, 0 ] },
"SC": { "default": "3POS", "display": [ 0, 1 ] },
"SE": { "default": "2POS", "display": [ 0, 2 ] },
"SG": { "default": "TOGGLE", "display": [ 0, 3 ] },
"SI": { "default": "TOGGLE", "display": [ 0, 4 ] },
# right side
"SB": { "default": "2POS", "display": [ 1, 0 ] },
"SD": { "default": "3POS", "display": [ 1, 1 ] },
"SF": { "default": "2POS", "display": [ 1, 2 ] },
"SH": { "default": "TOGGLE", "display": [ 1, 3 ] },
"SJ": { "default": "TOGGLE", "display": [ 1, 4 ] }
},
"tx12": {
# left side
"SA": { "default": "TOGGLE", "display": [ 0, 0 ] },