mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Draft tip selection menu
This commit is contained in:
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Мова:\n BY Беларуская",
|
"displayText": "Мова:\n BY Беларуская",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Език:\n BG Български",
|
"displayText": "Език:\n BG Български",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Jazyk:\n CS Český",
|
"displayText": "Jazyk:\n CS Český",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Sprog:\n DA Dansk",
|
"displayText": "Sprog:\n DA Dansk",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Sprache:\n DE Deutsch",
|
"displayText": "Sprache:\n DE Deutsch",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Γλώσσα:\n EL Ελληνικά",
|
"displayText": "Γλώσσα:\n EL Ελληνικά",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,6 +114,24 @@
|
|||||||
},
|
},
|
||||||
"USBPDModeSafe": {
|
"USBPDModeSafe": {
|
||||||
"displayText": "Safe\nMode"
|
"displayText": "Safe\nMode"
|
||||||
|
},
|
||||||
|
"TipTypeAuto": {
|
||||||
|
"displayText": "Auto"
|
||||||
|
},
|
||||||
|
"TipTypeT12Long": {
|
||||||
|
"displayText": "TS100\nLong"
|
||||||
|
},
|
||||||
|
"TipTypeT12Short": {
|
||||||
|
"displayText": "TS100\nShort"
|
||||||
|
},
|
||||||
|
"TipTypeT12PTS": {
|
||||||
|
"displayText": "TS100\nPTS"
|
||||||
|
},
|
||||||
|
"TipTypeTS80": {
|
||||||
|
"displayText": "TS80\n"
|
||||||
|
},
|
||||||
|
"TipTypeJBC": {
|
||||||
|
"displayText": "JBC\n"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"menuOptions": {
|
"menuOptions": {
|
||||||
@@ -320,6 +338,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Language:\n EN English",
|
"displayText": "Language:\n EN English",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Idioma:\n ES Castellano",
|
"displayText": "Idioma:\n ES Castellano",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Keel:\n ET Eesti",
|
"displayText": "Keel:\n ET Eesti",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Kieli:\n FI Suomi",
|
"displayText": "Kieli:\n FI Suomi",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Langue:\n FR Français",
|
"displayText": "Langue:\n FR Français",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Jezik:\n HR Hrvatski",
|
"displayText": "Jezik:\n HR Hrvatski",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Nyelv:\n HU Magyar",
|
"displayText": "Nyelv:\n HU Magyar",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Lingua:\n IT Italiano",
|
"displayText": "Lingua:\n IT Italiano",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "言語: 日本語",
|
"displayText": "言語: 日本語",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Kalba:\n LT Lietuvių",
|
"displayText": "Kalba:\n LT Lietuvių",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Språk:\n NB Norsk bm",
|
"displayText": "Språk:\n NB Norsk bm",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Taal:\n NL Nederlands",
|
"displayText": "Taal:\n NL Nederlands",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Spraak:\n NL_BE Vlaams",
|
"displayText": "Spraak:\n NL_BE Vlaams",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Język:\n PL Polski",
|
"displayText": "Język:\n PL Polski",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Idioma:\n PT Português",
|
"displayText": "Idioma:\n PT Português",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Limbă:\n RO Română",
|
"displayText": "Limbă:\n RO Română",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Язык:\n RU Русский",
|
"displayText": "Язык:\n RU Русский",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Jazyk:\n SK Slovenčina",
|
"displayText": "Jazyk:\n SK Slovenčina",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Jezik:\n SL Slovenščina",
|
"displayText": "Jezik:\n SL Slovenščina",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Jезик:\n SR Српски",
|
"displayText": "Jезик:\n SR Српски",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Jezik:\n SR Srpski",
|
"displayText": "Jezik:\n SR Srpski",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Språk:\n SV Svenska",
|
"displayText": "Språk:\n SV Svenska",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Dil:\n TR Türkçe",
|
"displayText": "Dil:\n TR Türkçe",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Мова:\n UK Українська",
|
"displayText": "Мова:\n UK Українська",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Ngôn ngu:\n VI Tieng Viet",
|
"displayText": "Ngôn ngu:\n VI Tieng Viet",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "語言: 廣東話",
|
"displayText": "語言: 廣東話",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "语言:简体中文",
|
"displayText": "语言:简体中文",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "語言:正體中文",
|
"displayText": "語言:正體中文",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"SolderingTipType": {
|
||||||
|
"displayText": "Soldering\nTip Type",
|
||||||
|
"description": "Select the tip type fitted"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "NoPowerDeliveryMessage",
|
"id": "NoPowerDeliveryMessage",
|
||||||
"include": ["POW_PD"],
|
"include": [
|
||||||
|
"POW_PD"
|
||||||
|
],
|
||||||
"description": "The IC required for USB-PD could not be communicated with. This is an error warning that USB-PD WILL NOT FUNCTION. Generally indicative of either a hardware or software issues."
|
"description": "The IC required for USB-PD could not be communicated with. This is an error warning that USB-PD WILL NOT FUNCTION. Generally indicative of either a hardware or software issues."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -56,44 +58,58 @@
|
|||||||
{
|
{
|
||||||
"id": "UVLOWarningString",
|
"id": "UVLOWarningString",
|
||||||
"maxLen": 8,
|
"maxLen": 8,
|
||||||
"include": ["POW_DC"],
|
"include": [
|
||||||
|
"POW_DC"
|
||||||
|
],
|
||||||
"description": "Warning text shown when the unit turns off due to undervoltage in simple mode."
|
"description": "Warning text shown when the unit turns off due to undervoltage in simple mode."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "UndervoltageString",
|
"id": "UndervoltageString",
|
||||||
"maxLen": 15,
|
"maxLen": 15,
|
||||||
"include": ["POW_DC"],
|
"include": [
|
||||||
|
"POW_DC"
|
||||||
|
],
|
||||||
"description": "Warning text shown when the unit turns off due to undervoltage in advanced mode."
|
"description": "Warning text shown when the unit turns off due to undervoltage in advanced mode."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "InputVoltageString",
|
"id": "InputVoltageString",
|
||||||
"maxLen": 11,
|
"maxLen": 11,
|
||||||
"note": "Preferably end with a space",
|
"note": "Preferably end with a space",
|
||||||
"include": ["POW_DC"],
|
"include": [
|
||||||
|
"POW_DC"
|
||||||
|
],
|
||||||
"description": "Prefix text for 'Input Voltage' shown before showing the input voltage reading."
|
"description": "Prefix text for 'Input Voltage' shown before showing the input voltage reading."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProfilePreheatString",
|
"id": "ProfilePreheatString",
|
||||||
"maxLen": 9,
|
"maxLen": 9,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "Shown in profile mode while preheating"
|
"description": "Shown in profile mode while preheating"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProfileCooldownString",
|
"id": "ProfileCooldownString",
|
||||||
"maxLen": 9,
|
"maxLen": 9,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "Shown in profile mode while cooling down"
|
"description": "Shown in profile mode while cooling down"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "SleepingAdvancedString",
|
"id": "SleepingAdvancedString",
|
||||||
"maxLen": 15,
|
"maxLen": 15,
|
||||||
"exclude": ["NO_SLEEP_MODE"],
|
"exclude": [
|
||||||
|
"NO_SLEEP_MODE"
|
||||||
|
],
|
||||||
"description": "The text shown to indicate the unit is in sleep mode when the advanced view is turned on."
|
"description": "The text shown to indicate the unit is in sleep mode when the advanced view is turned on."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "SleepingTipAdvancedString",
|
"id": "SleepingTipAdvancedString",
|
||||||
"maxLen": 6,
|
"maxLen": 6,
|
||||||
"exclude": ["NO_SLEEP_MODE"],
|
"exclude": [
|
||||||
|
"NO_SLEEP_MODE"
|
||||||
|
],
|
||||||
"description": "The prefix text shown before tip temperature when the unit is sleeping with advanced view on."
|
"description": "The prefix text shown before tip temperature when the unit is sleeping with advanced view on."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -104,7 +120,9 @@
|
|||||||
{
|
{
|
||||||
"id": "TooHotToStartProfileWarning",
|
"id": "TooHotToStartProfileWarning",
|
||||||
"default": "Too hot to\nstart profile",
|
"default": "Too hot to\nstart profile",
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "Shown when profile mode is started while the device is too hot."
|
"description": "Shown when profile mode is started while the device is too hot."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -172,7 +190,10 @@
|
|||||||
"id": "PowerMenu",
|
"id": "PowerMenu",
|
||||||
"maxLen": 5,
|
"maxLen": 5,
|
||||||
"maxLen2": 11,
|
"maxLen2": 11,
|
||||||
"include": ["POW_DC", "POW_QC"],
|
"include": [
|
||||||
|
"POW_DC",
|
||||||
|
"POW_QC"
|
||||||
|
],
|
||||||
"description": "Menu for settings related to power. Main settings to do with the input voltage."
|
"description": "Menu for settings related to power. Main settings to do with the input voltage."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -212,6 +233,30 @@
|
|||||||
{
|
{
|
||||||
"id": "USBPDModeSafe",
|
"id": "USBPDModeSafe",
|
||||||
"description": "When in this mode we enable all PD features, but we don't pad resistance slightly to account for cable and PCB trace loss"
|
"description": "When in this mode we enable all PD features, but we don't pad resistance slightly to account for cable and PCB trace loss"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "TipTypeAuto",
|
||||||
|
"description": "This is for automatic best-effort tip selection based on resistance"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "TipTypeT12Long",
|
||||||
|
"description": "Hakko T12 or older (long) TS100 tips"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "TipTypeT12Short",
|
||||||
|
"description": "Pine 6.2 ohm short TS100 style tips"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "TipTypeT12PTS",
|
||||||
|
"description": "PTS200 4 ohm short TS100 style tips"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "TipTypeTS80",
|
||||||
|
"description": "Miniware TS80(P) tips"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "TipTypeJBC",
|
||||||
|
"description": "JBC (or clone) tips"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"menuOptions": [
|
"menuOptions": [
|
||||||
@@ -219,35 +264,45 @@
|
|||||||
"id": "DCInCutoff",
|
"id": "DCInCutoff",
|
||||||
"maxLen": 5,
|
"maxLen": 5,
|
||||||
"maxLen2": 11,
|
"maxLen2": 11,
|
||||||
"include": ["POW_DC"],
|
"include": [
|
||||||
|
"POW_DC"
|
||||||
|
],
|
||||||
"description": "When the device is powered by a battery, this adjusts the low voltage threshold for when the unit should turn off the heater to protect the battery."
|
"description": "When the device is powered by a battery, this adjusts the low voltage threshold for when the unit should turn off the heater to protect the battery."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "MinVolCell",
|
"id": "MinVolCell",
|
||||||
"maxLen": 4,
|
"maxLen": 4,
|
||||||
"maxLen2": 9,
|
"maxLen2": 9,
|
||||||
"include": ["POW_DC"],
|
"include": [
|
||||||
|
"POW_DC"
|
||||||
|
],
|
||||||
"description": "When powered by a battery, this adjusts the minimum voltage per cell before shutdown. (This is multiplied by the cell count.)"
|
"description": "When powered by a battery, this adjusts the minimum voltage per cell before shutdown. (This is multiplied by the cell count.)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "QCMaxVoltage",
|
"id": "QCMaxVoltage",
|
||||||
"maxLen": 8,
|
"maxLen": 8,
|
||||||
"maxLen2": 15,
|
"maxLen2": 15,
|
||||||
"include": ["POW_QC"],
|
"include": [
|
||||||
|
"POW_QC"
|
||||||
|
],
|
||||||
"description": "This adjusts the maximum voltage the QC negotiation will adjust to. Does NOT affect USB-PD. Should be set safely based on the current rating of your power supply."
|
"description": "This adjusts the maximum voltage the QC negotiation will adjust to. Does NOT affect USB-PD. Should be set safely based on the current rating of your power supply."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "PDNegTimeout",
|
"id": "PDNegTimeout",
|
||||||
"maxLen": 8,
|
"maxLen": 8,
|
||||||
"maxLen2": 15,
|
"maxLen2": 15,
|
||||||
"include": ["POW_PD"],
|
"include": [
|
||||||
|
"POW_PD"
|
||||||
|
],
|
||||||
"description": "How long until firmware stops trying to negotiate for USB-PD and tries QC instead. Longer times may help dodgy / old PD adapters, faster times move onto PD quickly. Units of 100ms. Recommended to keep small values."
|
"description": "How long until firmware stops trying to negotiate for USB-PD and tries QC instead. Longer times may help dodgy / old PD adapters, faster times move onto PD quickly. Units of 100ms. Recommended to keep small values."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "USBPDMode",
|
"id": "USBPDMode",
|
||||||
"maxLen": 7,
|
"maxLen": 7,
|
||||||
"maxLen2": 15,
|
"maxLen2": 15,
|
||||||
"include": ["POW_PD"],
|
"include": [
|
||||||
|
"POW_PD"
|
||||||
|
],
|
||||||
"description": "No Dynamic disables EPR & PPS, Safe mode does not use padding resistance"
|
"description": "No Dynamic disables EPR & PPS, Safe mode does not use padding resistance"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -284,98 +339,126 @@
|
|||||||
"id": "ProfilePhases",
|
"id": "ProfilePhases",
|
||||||
"maxLen": 6,
|
"maxLen": 6,
|
||||||
"maxLen2": 13,
|
"maxLen2": 13,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "set the number of phases for profile mode."
|
"description": "set the number of phases for profile mode."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProfilePreheatTemp",
|
"id": "ProfilePreheatTemp",
|
||||||
"maxLen": 4,
|
"maxLen": 4,
|
||||||
"maxLen2": 9,
|
"maxLen2": 9,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "Preheat to this temperature at the start of profile mode."
|
"description": "Preheat to this temperature at the start of profile mode."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProfilePreheatSpeed",
|
"id": "ProfilePreheatSpeed",
|
||||||
"maxLen": 5,
|
"maxLen": 5,
|
||||||
"maxLen2": 11,
|
"maxLen2": 11,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "How fast the temperature is allowed to rise during the preheat phase at the start of profile mode."
|
"description": "How fast the temperature is allowed to rise during the preheat phase at the start of profile mode."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProfilePhase1Temp",
|
"id": "ProfilePhase1Temp",
|
||||||
"maxLen": 4,
|
"maxLen": 4,
|
||||||
"maxLen2": 9,
|
"maxLen2": 9,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "Target temperature for the end of phase 1 of profile mode."
|
"description": "Target temperature for the end of phase 1 of profile mode."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProfilePhase1Duration",
|
"id": "ProfilePhase1Duration",
|
||||||
"maxLen": 4,
|
"maxLen": 4,
|
||||||
"maxLen2": 9,
|
"maxLen2": 9,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "Duration of phase 1 of profile mode. The phase might actually take longer if it takes longer to reach the target temperature."
|
"description": "Duration of phase 1 of profile mode. The phase might actually take longer if it takes longer to reach the target temperature."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProfilePhase2Temp",
|
"id": "ProfilePhase2Temp",
|
||||||
"maxLen": 4,
|
"maxLen": 4,
|
||||||
"maxLen2": 9,
|
"maxLen2": 9,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "Target temperature for the end of phase 2 of profile mode."
|
"description": "Target temperature for the end of phase 2 of profile mode."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProfilePhase2Duration",
|
"id": "ProfilePhase2Duration",
|
||||||
"maxLen": 4,
|
"maxLen": 4,
|
||||||
"maxLen2": 9,
|
"maxLen2": 9,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "Duration of phase 2 of profile mode. The phase might actually take longer if it takes longer to reach the target temperature."
|
"description": "Duration of phase 2 of profile mode. The phase might actually take longer if it takes longer to reach the target temperature."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProfilePhase3Temp",
|
"id": "ProfilePhase3Temp",
|
||||||
"maxLen": 4,
|
"maxLen": 4,
|
||||||
"maxLen2": 9,
|
"maxLen2": 9,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "Target temperature for the end of phase 3 of profile mode."
|
"description": "Target temperature for the end of phase 3 of profile mode."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProfilePhase3Duration",
|
"id": "ProfilePhase3Duration",
|
||||||
"maxLen": 4,
|
"maxLen": 4,
|
||||||
"maxLen2": 9,
|
"maxLen2": 9,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "Duration of phase 3 of profile mode. The phase might actually take longer if it takes longer to reach the target temperature."
|
"description": "Duration of phase 3 of profile mode. The phase might actually take longer if it takes longer to reach the target temperature."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProfilePhase4Temp",
|
"id": "ProfilePhase4Temp",
|
||||||
"maxLen": 4,
|
"maxLen": 4,
|
||||||
"maxLen2": 9,
|
"maxLen2": 9,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "Target temperature for the end of phase 5 of profile mode."
|
"description": "Target temperature for the end of phase 5 of profile mode."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProfilePhase4Duration",
|
"id": "ProfilePhase4Duration",
|
||||||
"maxLen": 4,
|
"maxLen": 4,
|
||||||
"maxLen2": 9,
|
"maxLen2": 9,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "Duration of phase 5 of profile mode. The phase might actually take longer if it takes longer to reach the target temperature."
|
"description": "Duration of phase 5 of profile mode. The phase might actually take longer if it takes longer to reach the target temperature."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProfilePhase5Temp",
|
"id": "ProfilePhase5Temp",
|
||||||
"maxLen": 4,
|
"maxLen": 4,
|
||||||
"maxLen2": 9,
|
"maxLen2": 9,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "Target temperature for the end of phase 5 of profile mode."
|
"description": "Target temperature for the end of phase 5 of profile mode."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProfilePhase5Duration",
|
"id": "ProfilePhase5Duration",
|
||||||
"maxLen": 4,
|
"maxLen": 4,
|
||||||
"maxLen2": 9,
|
"maxLen2": 9,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "Duration of phase 5 of profile mode. The phase might actually take longer if it takes longer to reach the target temperature."
|
"description": "Duration of phase 5 of profile mode. The phase might actually take longer if it takes longer to reach the target temperature."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "ProfileCooldownSpeed",
|
"id": "ProfileCooldownSpeed",
|
||||||
"maxLen": 5,
|
"maxLen": 5,
|
||||||
"maxLen2": 11,
|
"maxLen2": 11,
|
||||||
"include": ["PROFILE_SUPPORT"],
|
"include": [
|
||||||
|
"PROFILE_SUPPORT"
|
||||||
|
],
|
||||||
"description": "How fast the temperature is allowed to drop during the cooldown phase at the end of profile mode."
|
"description": "How fast the temperature is allowed to drop during the cooldown phase at the end of profile mode."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -388,14 +471,18 @@
|
|||||||
"id": "SleepTemperature",
|
"id": "SleepTemperature",
|
||||||
"maxLen": 4,
|
"maxLen": 4,
|
||||||
"maxLen2": 9,
|
"maxLen2": 9,
|
||||||
"exclude": ["NO_SLEEP_MODE"],
|
"exclude": [
|
||||||
|
"NO_SLEEP_MODE"
|
||||||
|
],
|
||||||
"description": "Temperature the device will drop down to while asleep. Typically around halfway between off and soldering temperature."
|
"description": "Temperature the device will drop down to while asleep. Typically around halfway between off and soldering temperature."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "SleepTimeout",
|
"id": "SleepTimeout",
|
||||||
"maxLen": 4,
|
"maxLen": 4,
|
||||||
"maxLen2": 9,
|
"maxLen2": 9,
|
||||||
"exclude": ["NO_SLEEP_MODE"],
|
"exclude": [
|
||||||
|
"NO_SLEEP_MODE"
|
||||||
|
],
|
||||||
"description": "How long of a period without movement / button-pressing is required before the device drops down to the sleep temperature."
|
"description": "How long of a period without movement / button-pressing is required before the device drops down to the sleep temperature."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -408,14 +495,18 @@
|
|||||||
"id": "HallEffSensitivity",
|
"id": "HallEffSensitivity",
|
||||||
"maxLen": 6,
|
"maxLen": 6,
|
||||||
"maxLen2": 13,
|
"maxLen2": 13,
|
||||||
"include": ["HALL_SENSOR"],
|
"include": [
|
||||||
|
"HALL_SENSOR"
|
||||||
|
],
|
||||||
"description": "If the unit has a hall effect sensor (Pinecil), this adjusts how sensitive it is at detecting a magnet to put the device into sleep mode."
|
"description": "If the unit has a hall effect sensor (Pinecil), this adjusts how sensitive it is at detecting a magnet to put the device into sleep mode."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "HallEffSleepTimeout",
|
"id": "HallEffSleepTimeout",
|
||||||
"maxLen": 10,
|
"maxLen": 10,
|
||||||
"maxLen2": 10,
|
"maxLen2": 10,
|
||||||
"include": ["HALL_SENSOR"],
|
"include": [
|
||||||
|
"HALL_SENSOR"
|
||||||
|
],
|
||||||
"description": "If the unit has a hall effect sensor (Pinecil), this adjusts how long the device takes before it drops down to the sleep temperature when hall sensor is over threshold."
|
"description": "If the unit has a hall effect sensor (Pinecil), this adjusts how long the device takes before it drops down to the sleep temperature when hall sensor is over threshold."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -428,7 +519,9 @@
|
|||||||
"id": "DisplayRotation",
|
"id": "DisplayRotation",
|
||||||
"maxLen": 6,
|
"maxLen": 6,
|
||||||
"maxLen2": 13,
|
"maxLen2": 13,
|
||||||
"exclude": ["NO_DISPLAY_ROTATE"],
|
"exclude": [
|
||||||
|
"NO_DISPLAY_ROTATE"
|
||||||
|
],
|
||||||
"description": "If the display should rotate automatically or if it should be fixed for left- or right-handed mode."
|
"description": "If the display should rotate automatically or if it should be fixed for left- or right-handed mode."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -495,7 +588,9 @@
|
|||||||
"id": "BluetoothLE",
|
"id": "BluetoothLE",
|
||||||
"maxLen": 7,
|
"maxLen": 7,
|
||||||
"maxLen2": 15,
|
"maxLen2": 15,
|
||||||
"include": ["BLE_ENABLED"],
|
"include": [
|
||||||
|
"BLE_ENABLED"
|
||||||
|
],
|
||||||
"description": "Should BLE be enabled at boot time."
|
"description": "Should BLE be enabled at boot time."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -545,6 +640,12 @@
|
|||||||
"maxLen": 7,
|
"maxLen": 7,
|
||||||
"maxLen2": 15,
|
"maxLen2": 15,
|
||||||
"description": "Changes the device language on multi-lingual builds."
|
"description": "Changes the device language on multi-lingual builds."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "SolderingTipType",
|
||||||
|
"maxLen": 7,
|
||||||
|
"maxLen2": 15,
|
||||||
|
"description": "For manually selecting the type of tip fitted"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -7,8 +7,8 @@
|
|||||||
* Houses the system settings and allows saving / restoring from flash
|
* Houses the system settings and allows saving / restoring from flash
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SETTINGS_H_
|
#ifndef CORE_SETTINGS_H_
|
||||||
#define SETTINGS_H_
|
#define CORE_SETTINGS_H_
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
@@ -74,8 +74,9 @@ enum SettingsOptions {
|
|||||||
ProfilePhase5Duration = 51, // Target duration for phase 5
|
ProfilePhase5Duration = 51, // Target duration for phase 5
|
||||||
ProfileCooldownSpeed = 52, // Maximum allowed cooldown speed in degrees per second
|
ProfileCooldownSpeed = 52, // Maximum allowed cooldown speed in degrees per second
|
||||||
HallEffectSleepTime = 53, // Seconds (/5) timeout to sleep when hall effect over threshold
|
HallEffectSleepTime = 53, // Seconds (/5) timeout to sleep when hall effect over threshold
|
||||||
|
SolderingTipType = 54, // Selecting the type of soldering tip fitted
|
||||||
//
|
//
|
||||||
SettingsOptionsLength = 54, //
|
SettingsOptionsLength = 55, // End marker
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
@@ -117,6 +118,31 @@ typedef enum {
|
|||||||
FULL = 2, // Locking buttons for Boost mode AND for Soldering mode
|
FULL = 2, // Locking buttons for Boost mode AND for Soldering mode
|
||||||
} lockingMode_t;
|
} lockingMode_t;
|
||||||
|
|
||||||
|
/* Selection of the soldering tip
|
||||||
|
* Some devices allow multiple types of tips to be fitted, this allows selecting them or overriding the logic
|
||||||
|
* The first type will be the default (gets value of 0)
|
||||||
|
*/
|
||||||
|
typedef enum {
|
||||||
|
#ifdef AUTO_TIP_SELECTION
|
||||||
|
AUTO, // If the hardware supports automatic detection
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef TIPTYPE_T12
|
||||||
|
T12_8_OHM, // TS100 style tips or Hakko T12 tips with adaptors
|
||||||
|
T12_6_2_OHM, // Short Tips manufactured by Pine64
|
||||||
|
T12_4_OHM, // Longer tip but low resistance for PTS200
|
||||||
|
#endif
|
||||||
|
#ifdef TIPTYE_TS80
|
||||||
|
TS80_4_5_OHM, // TS80(P) default tips
|
||||||
|
// We do not know of other tuning tips (?yet?)
|
||||||
|
#endif
|
||||||
|
#ifdef TIPTYPE_JBC
|
||||||
|
JBC_2_5_OHM, // Small JBC tips as used in the S60
|
||||||
|
#endif
|
||||||
|
TIP_TYPE_MAX, // Max value marker
|
||||||
|
} tipType_t;
|
||||||
|
|
||||||
|
|
||||||
// Settings wide operations
|
// Settings wide operations
|
||||||
void saveSettings();
|
void saveSettings();
|
||||||
bool loadSettings();
|
bool loadSettings();
|
||||||
@@ -129,11 +155,11 @@ uint16_t getSettingValue(const enum SettingsOptions option);
|
|||||||
void nextSettingValue(const enum SettingsOptions option);
|
void nextSettingValue(const enum SettingsOptions option);
|
||||||
void prevSettingValue(const enum SettingsOptions option);
|
void prevSettingValue(const enum SettingsOptions option);
|
||||||
bool isLastSettingValue(const enum SettingsOptions option);
|
bool isLastSettingValue(const enum SettingsOptions option);
|
||||||
|
// For setting values to settings
|
||||||
void setSettingValue(const enum SettingsOptions option, const uint16_t newValue);
|
void setSettingValue(const enum SettingsOptions option, const uint16_t newValue);
|
||||||
|
|
||||||
// Special access
|
// Special access helpers, to reduce logic duplication
|
||||||
uint8_t lookupVoltageLevel();
|
uint8_t lookupVoltageLevel();
|
||||||
uint16_t lookupHallEffectThreshold();
|
uint16_t lookupHallEffectThreshold();
|
||||||
|
const char* lookupTipName(); // Get the name string for the current soldering tip
|
||||||
#endif /* SETTINGS_H_ */
|
#endif /* SETTINGS_H_ */
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ enum class SettingsItemIndex : uint8_t {
|
|||||||
PowerPulseDuration,
|
PowerPulseDuration,
|
||||||
SettingsReset,
|
SettingsReset,
|
||||||
LanguageSwitch,
|
LanguageSwitch,
|
||||||
|
SolderingTipType,
|
||||||
NUM_ITEMS,
|
NUM_ITEMS,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -149,6 +150,12 @@ struct TranslationIndexTable {
|
|||||||
uint16_t USBPDModeDefault;
|
uint16_t USBPDModeDefault;
|
||||||
uint16_t USBPDModeNoDynamic;
|
uint16_t USBPDModeNoDynamic;
|
||||||
uint16_t USBPDModeSafe;
|
uint16_t USBPDModeSafe;
|
||||||
|
uint16_t TipTypeAuto;
|
||||||
|
uint16_t TipTypeT12Long;
|
||||||
|
uint16_t TipTypeT12Short;
|
||||||
|
uint16_t TipTypeT12PTS;
|
||||||
|
uint16_t TipTypeTS80;
|
||||||
|
uint16_t TipTypeJBC;
|
||||||
|
|
||||||
uint16_t SettingsDescriptions[static_cast<uint32_t>(SettingsItemIndex::NUM_ITEMS)];
|
uint16_t SettingsDescriptions[static_cast<uint32_t>(SettingsItemIndex::NUM_ITEMS)];
|
||||||
uint16_t SettingsShortNames[static_cast<uint32_t>(SettingsItemIndex::NUM_ITEMS)];
|
uint16_t SettingsShortNames[static_cast<uint32_t>(SettingsItemIndex::NUM_ITEMS)];
|
||||||
|
|||||||
@@ -16,6 +16,10 @@
|
|||||||
#include <string.h> // for memset
|
#include <string.h> // for memset
|
||||||
bool sanitiseSettings();
|
bool sanitiseSettings();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Used to constrain the QC 3.0 Voltage selection to suit hardware.
|
||||||
|
* We allow a little overvoltage for users who want to push it
|
||||||
|
*/
|
||||||
#ifdef POW_QC_20V
|
#ifdef POW_QC_20V
|
||||||
#define QC_VOLTAGE_MAX 220
|
#define QC_VOLTAGE_MAX 220
|
||||||
#else
|
#else
|
||||||
@@ -105,6 +109,7 @@ static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOp
|
|||||||
{ 10, 180, 5, 30}, // ProfilePhase5Duration
|
{ 10, 180, 5, 30}, // ProfilePhase5Duration
|
||||||
{ 1, 10, 1, 2}, // ProfileCooldownSpeed
|
{ 1, 10, 1, 2}, // ProfileCooldownSpeed
|
||||||
{ 0, 12, 1, 0}, // HallEffectSleepTime
|
{ 0, 12, 1, 0}, // HallEffectSleepTime
|
||||||
|
{ 0, tipType_t::TIP_TYPE_MAX, 1, 0}, // SolderingTipType
|
||||||
};
|
};
|
||||||
static_assert((sizeof(settingsConstants) / sizeof(SettingConstants)) == ((int)SettingsOptions::SettingsOptionsLength));
|
static_assert((sizeof(settingsConstants) / sizeof(SettingConstants)) == ((int)SettingsOptions::SettingsOptionsLength));
|
||||||
|
|
||||||
@@ -292,3 +297,19 @@ uint8_t lookupVoltageLevel() {
|
|||||||
return (minVoltageOnCell * minVoltageCellCount) + (minVoltageCellCount * 2);
|
return (minVoltageOnCell * minVoltageCellCount) + (minVoltageCellCount * 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *lookupTipName() {
|
||||||
|
// Get the name string for the current soldering tip
|
||||||
|
tipType_t value = (tipType_t)getSettingValue(SettingsOptions::SolderingTipType);
|
||||||
|
|
||||||
|
switch (value) {
|
||||||
|
#ifdef AUTO_TIP_SELECTION
|
||||||
|
case tipType_t::AUTO:
|
||||||
|
return translatedString(Tr->USBPDModeDefault);
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
default:
|
||||||
|
return nullptr;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -115,6 +115,10 @@ static void displayHallEffectSleepTime(void);
|
|||||||
static bool showHallEffect(void);
|
static bool showHallEffect(void);
|
||||||
#endif /* HALL_SENSOR */
|
#endif /* HALL_SENSOR */
|
||||||
|
|
||||||
|
// Tip type selection
|
||||||
|
static void displaySolderingTipType(void);
|
||||||
|
static bool showSolderingTipType(void);
|
||||||
|
|
||||||
// Menu functions
|
// Menu functions
|
||||||
|
|
||||||
#if defined(POW_DC) || defined(POW_QC) || defined(POW_PD)
|
#if defined(POW_DC) || defined(POW_QC) || defined(POW_PD)
|
||||||
@@ -137,6 +141,7 @@ static void displayAdvancedMenu(void);
|
|||||||
* USBPDMode
|
* USBPDMode
|
||||||
*
|
*
|
||||||
* Soldering
|
* Soldering
|
||||||
|
* Tip Type selection
|
||||||
* Boost Mode Temp
|
* Boost Mode Temp
|
||||||
* Auto Start
|
* Auto Start
|
||||||
* Temp Change Short Step
|
* Temp Change Short Step
|
||||||
@@ -262,6 +267,7 @@ const menuitem powerMenu[] = {
|
|||||||
|
|
||||||
const menuitem solderingMenu[] = {
|
const menuitem solderingMenu[] = {
|
||||||
/*
|
/*
|
||||||
|
* Tip Type
|
||||||
* Boost Mode Temp
|
* Boost Mode Temp
|
||||||
* Auto Start
|
* Auto Start
|
||||||
* Temp Change Short Step
|
* Temp Change Short Step
|
||||||
@@ -282,6 +288,8 @@ const menuitem solderingMenu[] = {
|
|||||||
* Profile Phase 5 Duration (s)
|
* Profile Phase 5 Duration (s)
|
||||||
* Profile Cooldown Max Temperature Change Per Second
|
* Profile Cooldown Max Temperature Change Per Second
|
||||||
*/
|
*/
|
||||||
|
/* Tip Type */
|
||||||
|
{SETTINGS_DESC(SettingsItemIndex::SolderingTipType), nullptr, displaySolderingTipType, showSolderingTipType, SettingsOptions::SolderingTipType, SettingsItemIndex::SolderingTipType, 5},
|
||||||
/* Boost Temp */
|
/* Boost Temp */
|
||||||
{SETTINGS_DESC(SettingsItemIndex::BoostTemperature), setBoostTemp, displayBoostTemp, nullptr, SettingsOptions::BoostTemp, SettingsItemIndex::BoostTemperature, 5},
|
{SETTINGS_DESC(SettingsItemIndex::BoostTemperature), setBoostTemp, displayBoostTemp, nullptr, SettingsOptions::BoostTemp, SettingsItemIndex::BoostTemperature, 5},
|
||||||
/* Auto start */
|
/* Auto start */
|
||||||
@@ -755,7 +763,12 @@ static void displayHallEffectSleepTime(void) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* HALL_SENSOR */
|
#endif /* HALL_SENSOR */
|
||||||
|
static void displaySolderingTipType(void) {
|
||||||
|
// TODO wrapping X value
|
||||||
|
OLED::print(lookupTipName(), FontStyle::SMALL);
|
||||||
|
}
|
||||||
|
// If there is no detection, and no options, max is 0
|
||||||
|
static bool showSolderingTipType(void) { return tipType_t::TIP_TYPE_MAX != 0; }
|
||||||
static void setTempF(const enum SettingsOptions option) {
|
static void setTempF(const enum SettingsOptions option) {
|
||||||
uint16_t Temp = getSettingValue(option);
|
uint16_t Temp = getSettingValue(option);
|
||||||
if (getSettingValue(SettingsOptions::TemperatureInF)) {
|
if (getSettingValue(SettingsOptions::TemperatureInF)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user