mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Compare commits
76 Commits
cbf2b5a69d
...
cc0dcbdcc2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc0dcbdcc2 | ||
|
|
40655a9501 | ||
|
|
05158321ba | ||
|
|
f810921b0c | ||
|
|
2b8568ce37 | ||
|
|
d122a9fb52 | ||
|
|
57c8a35041 | ||
|
|
3ed86d2acf | ||
|
|
7c6ce812f6 | ||
|
|
c92bf89296 | ||
|
|
8a392b5364 | ||
|
|
68aac2847b | ||
|
|
dc2b91c879 | ||
|
|
14cca01f78 | ||
|
|
6a549b6acc | ||
|
|
911ef59da4 | ||
|
|
7e1dfc05a3 | ||
|
|
7bf9620eb7 | ||
|
|
a712e8d478 | ||
|
|
d6c04a090b | ||
|
|
7869b28736 | ||
|
|
06629c6d87 | ||
|
|
98755f06a1 | ||
|
|
82a032819a | ||
|
|
daca0e66f8 | ||
|
|
e1340adf13 | ||
|
|
1b45b363f2 | ||
|
|
78686a8e51 | ||
|
|
4286358d1d | ||
|
|
60e3f1d5af | ||
|
|
d9d421fe8f | ||
|
|
30c9ac805a | ||
|
|
52c4087d3f | ||
|
|
a5259448b9 | ||
|
|
7c2664797e | ||
|
|
6e30c78c9d | ||
|
|
d7a58e50d4 | ||
|
|
050fa824c0 | ||
|
|
509e6a8ef4 | ||
|
|
1e756b4b4a | ||
|
|
ea14714b36 | ||
|
|
67ecb2d766 | ||
|
|
32d9577e48 | ||
|
|
0fa48ed345 | ||
|
|
211c172103 | ||
|
|
058f04f0cd | ||
|
|
84c61aa62a | ||
|
|
5a67f060d4 | ||
|
|
9d26f8b1b5 | ||
|
|
72a7cf3de2 | ||
|
|
0fdc05257a | ||
|
|
8c538a2ab0 | ||
|
|
f6c864d3b6 | ||
|
|
c2c1cab283 | ||
|
|
522822b268 | ||
|
|
b37c4209af | ||
|
|
eca4a230bc | ||
|
|
ff213aa06f | ||
|
|
4a1e946e25 | ||
|
|
b005870033 | ||
|
|
07457af576 | ||
|
|
7fc12dafbf | ||
|
|
cb667874b6 | ||
|
|
f759195339 | ||
|
|
5e8cd339ed | ||
|
|
ab5f5b23a6 | ||
|
|
5b5200a8d8 | ||
|
|
9e8bd8e790 | ||
|
|
6632065ade | ||
|
|
fc7aaf2b56 | ||
|
|
95493b48e7 | ||
|
|
27de7f5db1 | ||
|
|
450d129d15 | ||
|
|
9b3effeaa6 | ||
|
|
2bd7b81589 | ||
|
|
933e2ccd7f |
@@ -40,9 +40,9 @@ I.e.:
|
|||||||
|
|
||||||
**Additional scroll-able items appear in this order**:
|
**Additional scroll-able items appear in this order**:
|
||||||
|
|
||||||
### Date
|
### Timestamp
|
||||||
|
|
||||||
- This is a date of firmware compilation and it has the following format: `DD-MM-YY` (i.e., `01-07-23` means it has been built in July, 1st, 2023)
|
- This is a timestamp of firmware compilation and it has the following format: `YYYYMMDD HHMMSS` (i.e., `20230701 213456` means it has been built in July, 1st, 2023 at 9:34:56 pm)
|
||||||
|
|
||||||
### ID
|
### ID
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ _This firmware does **NOT** support the USB port while running for changing sett
|
|||||||
|
|
||||||
## Supported Hardware
|
## Supported Hardware
|
||||||
|
|
||||||
| Device | DC | QC | PD | EPR | BLE | Tip Sense | Recommended Purchase | Notes |
|
| Device | DC | QC | PD | EPR\*\*\*\* | BLE | Tip Sense | Recommended Purchase | Notes |
|
||||||
| :------------: | :-: | :-: | :-: | :-: | :-: | :-------: | :------------------: | :-------------------------------------: |
|
| :------------: | :-: | :-: | :-: | :-: | :-: | :-------: | :------------------: | :-------------------------------------: |
|
||||||
| Miniware MHP30 | ❌ | ❌ | ✔️ | ❌ | ❌ | ✔️ | ✔️ | |
|
| Miniware MHP30 | ❌ | ❌ | ✔️ | ❌ | ❌ | ✔️ | ✔️ | |
|
||||||
| Pinecil V1 | ✔️ | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ \* | |
|
| Pinecil V1 | ✔️ | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ \* | |
|
||||||
@@ -48,6 +48,9 @@ The _TS101_ & _S60(P)_ irons and _MHP30_ & _T55_ plates feature a higher resolut
|
|||||||
|
|
||||||
\*\*\* _TS80_ is replaced by _TS80P_. Production ramped down a long time ago and it's just existing stock clearing the system. It's marked not recommended being optimistic that people might pause and buy the far superior _TS80P_ instead. This is the main reason why the _TS80_ is **_no longer recommended_**.
|
\*\*\* _TS80_ is replaced by _TS80P_. Production ramped down a long time ago and it's just existing stock clearing the system. It's marked not recommended being optimistic that people might pause and buy the far superior _TS80P_ instead. This is the main reason why the _TS80_ is **_no longer recommended_**.
|
||||||
|
|
||||||
|
\*\*\*\* **EPR/PPS with 28V support** is _**disabled by default**_ due to [safety concerns](https://github.com/Ralim/IronOS/pull/2073), but to turn it back on set
|
||||||
|
_PD Mode_ option in _Power settings_ submenu to _Safe_ or _Default_.
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
To get started with _IronOS firmware_, please jump to [Getting Started Guide](https://ralim.github.io/IronOS/GettingStarted/).
|
To get started with _IronOS firmware_, please jump to [Getting Started Guide](https://ralim.github.io/IronOS/GettingStarted/).
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ def get_constants() -> List[Tuple[str, str]]:
|
|||||||
|
|
||||||
def get_debug_menu() -> List[str]:
|
def get_debug_menu() -> List[str]:
|
||||||
return [
|
return [
|
||||||
datetime.today().strftime("%Y-%m-%d"),
|
datetime.today().strftime("%Y%m%d %H%M%S"),
|
||||||
"ID ",
|
"ID ",
|
||||||
"ACC ",
|
"ACC ",
|
||||||
"PWR ",
|
"PWR ",
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "Ч",
|
"SettingStartSleepChar": "Ч",
|
||||||
"SettingStartSleepOffChar": "К",
|
"SettingStartSleepOffChar": "К",
|
||||||
"SettingLockBoostChar": "Т",
|
"SettingLockBoostChar": "Т",
|
||||||
"SettingLockFullChar": "П"
|
"SettingLockFullChar": "П",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "С",
|
"SettingStartSleepChar": "С",
|
||||||
"SettingStartSleepOffChar": "П",
|
"SettingStartSleepOffChar": "П",
|
||||||
"SettingLockBoostChar": "Т",
|
"SettingLockBoostChar": "Т",
|
||||||
"SettingLockFullChar": "П"
|
"SettingLockFullChar": "П",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "S",
|
"SettingStartSleepChar": "S",
|
||||||
"SettingStartSleepOffChar": "M",
|
"SettingStartSleepOffChar": "M",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "U"
|
"SettingLockFullChar": "U",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "D",
|
"SettingStartSleepChar": "D",
|
||||||
"SettingStartSleepOffChar": "R",
|
"SettingStartSleepOffChar": "R",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "F"
|
"SettingLockFullChar": "F",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "R",
|
"SettingStartSleepChar": "R",
|
||||||
"SettingStartSleepOffChar": "K",
|
"SettingStartSleepOffChar": "K",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "V"
|
"SettingLockFullChar": "V",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "Ζ",
|
"SettingStartSleepChar": "Ζ",
|
||||||
"SettingStartSleepOffChar": "Υ",
|
"SettingStartSleepOffChar": "Υ",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "Π"
|
"SettingLockFullChar": "Π",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "Z",
|
"SettingStartSleepChar": "Z",
|
||||||
"SettingStartSleepOffChar": "R",
|
"SettingStartSleepOffChar": "R",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "F"
|
"SettingLockFullChar": "F",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "R",
|
"SettingStartSleepChar": "R",
|
||||||
"SettingStartSleepOffChar": "F",
|
"SettingStartSleepOffChar": "F",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "F"
|
"SettingLockFullChar": "F",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "Z",
|
"SettingStartSleepChar": "Z",
|
||||||
"SettingStartSleepOffChar": "P",
|
"SettingStartSleepOffChar": "P",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "T"
|
"SettingLockFullChar": "T",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "L",
|
"SettingStartSleepChar": "L",
|
||||||
"SettingStartSleepOffChar": "H",
|
"SettingStartSleepOffChar": "H",
|
||||||
"SettingLockBoostChar": "V",
|
"SettingLockBoostChar": "V",
|
||||||
"SettingLockFullChar": "K"
|
"SettingLockFullChar": "K",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"tempUnitFahrenheit": false,
|
"tempUnitFahrenheit": false,
|
||||||
"messagesWarn": {
|
"messagesWarn": {
|
||||||
"CalibrationDone": {
|
"CalibrationDone": {
|
||||||
"message": "Étalonnage\nterminé!"
|
"message": "Étalonnage\nterminé !"
|
||||||
},
|
},
|
||||||
"ResetOKMessage": {
|
"ResetOKMessage": {
|
||||||
"message": "Reset OK"
|
"message": "Reset OK"
|
||||||
@@ -19,37 +19,37 @@
|
|||||||
"message": "USB-PD\nnon détecté !"
|
"message": "USB-PD\nnon détecté !"
|
||||||
},
|
},
|
||||||
"LockingKeysString": {
|
"LockingKeysString": {
|
||||||
"message": "VERROUIL"
|
"message": "VERROUILLÉ"
|
||||||
},
|
},
|
||||||
"UnlockingKeysString": {
|
"UnlockingKeysString": {
|
||||||
"message": "DEVERROU"
|
"message": "DEVERROUILLÉ"
|
||||||
},
|
},
|
||||||
"WarningKeysLockedString": {
|
"WarningKeysLockedString": {
|
||||||
"message": "! VERR. !"
|
"message": "! VERR. !"
|
||||||
},
|
},
|
||||||
"WarningThermalRunaway": {
|
"WarningThermalRunaway": {
|
||||||
"message": "Emballement\nthermique"
|
"message": "Surchauffe\ncritique"
|
||||||
},
|
},
|
||||||
"WarningTipShorted": {
|
"WarningTipShorted": {
|
||||||
"message": "!Tip Shorted!"
|
"message": "!Court-circuit Panne!"
|
||||||
},
|
},
|
||||||
"SettingsCalibrationWarning": {
|
"SettingsCalibrationWarning": {
|
||||||
"message": "Avant de redémarrer, assurez-vous que la panne et la poignée sont à température ambiante !"
|
"message": "Avant de redémarrer, assurez-vous que la panne et la poignée sont à température ambiante !"
|
||||||
},
|
},
|
||||||
"CJCCalibrating": {
|
"CJCCalibrating": {
|
||||||
"message": "Etalonnage\n"
|
"message": "Étalonnage\n"
|
||||||
},
|
},
|
||||||
"SettingsResetWarning": {
|
"SettingsResetWarning": {
|
||||||
"message": "Voulez-vous vraiment réinitialiser les paramètres aux valeurs par défaut ?"
|
"message": "Voulez-vous vraiment réinitialiser les paramètres aux valeurs par défaut ?"
|
||||||
},
|
},
|
||||||
"UVLOWarningString": {
|
"UVLOWarningString": {
|
||||||
"message": "DC FAIBL"
|
"message": "TENSION FAIBLE"
|
||||||
},
|
},
|
||||||
"UndervoltageString": {
|
"UndervoltageString": {
|
||||||
"message": "Sous-tension\n"
|
"message": "Sous-tension\n"
|
||||||
},
|
},
|
||||||
"InputVoltageString": {
|
"InputVoltageString": {
|
||||||
"message": "V d'entrée: \n"
|
"message": "Tension d'entrée:\n"
|
||||||
},
|
},
|
||||||
"SleepingAdvancedString": {
|
"SleepingAdvancedString": {
|
||||||
"message": "En veille...\n"
|
"message": "En veille...\n"
|
||||||
@@ -58,10 +58,10 @@
|
|||||||
"message": "Panne: \n"
|
"message": "Panne: \n"
|
||||||
},
|
},
|
||||||
"ProfilePreheatString": {
|
"ProfilePreheatString": {
|
||||||
"message": "Preheat\n"
|
"message": "Préchauffage\n"
|
||||||
},
|
},
|
||||||
"ProfileCooldownString": {
|
"ProfileCooldownString": {
|
||||||
"message": "Cooldown\n"
|
"message": "Refroidissement\n"
|
||||||
},
|
},
|
||||||
"DeviceFailedValidationWarning": {
|
"DeviceFailedValidationWarning": {
|
||||||
"message": "Votre appareil semble être une contrefaçon !"
|
"message": "Votre appareil semble être une contrefaçon !"
|
||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "V",
|
"SettingStartSleepChar": "V",
|
||||||
"SettingStartSleepOffChar": "O",
|
"SettingStartSleepOffChar": "O",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "V"
|
"SettingLockFullChar": "V",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
@@ -107,22 +108,22 @@
|
|||||||
},
|
},
|
||||||
"menuValues": {
|
"menuValues": {
|
||||||
"USBPDModeDefault": {
|
"USBPDModeDefault": {
|
||||||
"displayText": "Default\nMode"
|
"displayText": "Mode\npar Défaut"
|
||||||
},
|
},
|
||||||
"USBPDModeNoDynamic": {
|
"USBPDModeNoDynamic": {
|
||||||
"displayText": "No\nDynamic"
|
"displayText": "Non\nDynamique"
|
||||||
},
|
},
|
||||||
"USBPDModeSafe": {
|
"USBPDModeSafe": {
|
||||||
"displayText": "Safe\nMode"
|
"displayText": "Mode\nSafe"
|
||||||
},
|
},
|
||||||
"TipTypeAuto": {
|
"TipTypeAuto": {
|
||||||
"displayText": "Auto\nSense"
|
"displayText": "Détéction\nAuto."
|
||||||
},
|
},
|
||||||
"TipTypeT12Long": {
|
"TipTypeT12Long": {
|
||||||
"displayText": "TS100\nLong"
|
"displayText": "TS100\nLong"
|
||||||
},
|
},
|
||||||
"TipTypeT12Short": {
|
"TipTypeT12Short": {
|
||||||
"displayText": "Pine\nShort"
|
"displayText": "Pine\nCourt"
|
||||||
},
|
},
|
||||||
"TipTypeT12PTS": {
|
"TipTypeT12PTS": {
|
||||||
"displayText": "PTS\n200"
|
"displayText": "PTS\n200"
|
||||||
@@ -137,11 +138,11 @@
|
|||||||
"menuOptions": {
|
"menuOptions": {
|
||||||
"DCInCutoff": {
|
"DCInCutoff": {
|
||||||
"displayText": "Source\nd'alim.",
|
"displayText": "Source\nd'alim.",
|
||||||
"description": "Source d'alimentation. Règle la tension de coupure (DC 10V) (S 3.3V par cellules, désactive la limite de puissance)"
|
"description": "Source d'alimentation. Définit la tension de coupure (DC 10V) (S 3.3V par cellule, désactive la limite de puissance)"
|
||||||
},
|
},
|
||||||
"MinVolCell": {
|
"MinVolCell": {
|
||||||
"displayText": "Tension\nminimale",
|
"displayText": "Tension\nminimale",
|
||||||
"description": "Tension minimale autorisée par cellule (3S: 3 - 3.7V | 4-6S: 2.4 - 3.7V)"
|
"description": "Tension minimale autorisée par cellule (3S : 3 - 3.7V | 4-6S : 2.4 - 3.7V)"
|
||||||
},
|
},
|
||||||
"QCMaxVoltage": {
|
"QCMaxVoltage": {
|
||||||
"displayText": "Tension\nQC",
|
"displayText": "Tension\nQC",
|
||||||
@@ -149,18 +150,18 @@
|
|||||||
},
|
},
|
||||||
"PDNegTimeout": {
|
"PDNegTimeout": {
|
||||||
"displayText": "Délai\nexpir. PD",
|
"displayText": "Délai\nexpir. PD",
|
||||||
"description": "Délai de la negociation PD par étapes de 100ms pour la compatiblité avec certains chargeurs QC"
|
"description": "Délai de négociation PD par paliers de 100ms pour la compatibilité avec certains chargeurs QC"
|
||||||
},
|
},
|
||||||
"USBPDMode": {
|
"USBPDMode": {
|
||||||
"displayText": "PD\nMode",
|
"displayText": "Mode\nPD",
|
||||||
"description": "No Dynamic disables EPR & PPS, Safe mode does not use padding resistance"
|
"description": "Aucune dynamique ne désactive EPR & PPS, le mode sécurisé n'utilise pas de résistance de protection"
|
||||||
},
|
},
|
||||||
"BoostTemperature": {
|
"BoostTemperature": {
|
||||||
"displayText": "Temp.\nboost",
|
"displayText": "Temp.\nboost",
|
||||||
"description": "Température utilisée en \"mode boost\""
|
"description": "Température utilisée en \"mode boost\""
|
||||||
},
|
},
|
||||||
"AutoStart": {
|
"AutoStart": {
|
||||||
"displayText": "Chauffer au\ndémarrage",
|
"displayText": "Chauffer audémarrage",
|
||||||
"description": "A=activé | V=mode veille | O=mode veille à température ambiante"
|
"description": "A=activé | V=mode veille | O=mode veille à température ambiante"
|
||||||
},
|
},
|
||||||
"TempChangeShortStep": {
|
"TempChangeShortStep": {
|
||||||
@@ -177,23 +178,23 @@
|
|||||||
},
|
},
|
||||||
"ProfilePhases": {
|
"ProfilePhases": {
|
||||||
"displayText": "Profile\nPhases",
|
"displayText": "Profile\nPhases",
|
||||||
"description": "Number of phases in profile mode"
|
"description": "Nombre de phases dans le mode de profile"
|
||||||
},
|
},
|
||||||
"ProfilePreheatTemp": {
|
"ProfilePreheatTemp": {
|
||||||
"displayText": "Preheat\nTemp",
|
"displayText": "Temp.\nPréchauffage",
|
||||||
"description": "Preheat to this temperature at the start of profile mode"
|
"description": "Préchauffer à cette température au début du mode de profile"
|
||||||
},
|
},
|
||||||
"ProfilePreheatSpeed": {
|
"ProfilePreheatSpeed": {
|
||||||
"displayText": "Preheat\nSpeed",
|
"displayText": "Vitesse\nPréchauffage",
|
||||||
"description": "Preheat at this rate (degrees per second)"
|
"description": "Préchauffer à cette vitesse (degrés par seconde)"
|
||||||
},
|
},
|
||||||
"ProfilePhase1Temp": {
|
"ProfilePhase1Temp": {
|
||||||
"displayText": "Phase 1\nTemp",
|
"displayText": "Temp.\nPhase 1",
|
||||||
"description": "Target temperature for the end of this phase"
|
"description": "Température séléctionnée pour la fin de cette phase"
|
||||||
},
|
},
|
||||||
"ProfilePhase1Duration": {
|
"ProfilePhase1Duration": {
|
||||||
"displayText": "Phase 1\nDuration",
|
"displayText": "Durée\nPhase 1",
|
||||||
"description": "Target duration of this phase (seconds)"
|
"description": "Durée séléctionnée pour cette phase (secondes)"
|
||||||
},
|
},
|
||||||
"ProfilePhase2Temp": {
|
"ProfilePhase2Temp": {
|
||||||
"displayText": "Phase 2\nTemp",
|
"displayText": "Phase 2\nTemp",
|
||||||
@@ -228,12 +229,12 @@
|
|||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"ProfileCooldownSpeed": {
|
"ProfileCooldownSpeed": {
|
||||||
"displayText": "Cooldown\nSpeed",
|
"displayText": "Vitesse de\nRefroidissement",
|
||||||
"description": "Cooldown at this rate at the end of profile mode (degrees per second)"
|
"description": "Refroidissement à ce rythme à la fin du mode profil (degrés par seconde)"
|
||||||
},
|
},
|
||||||
"MotionSensitivity": {
|
"MotionSensitivity": {
|
||||||
"displayText": "Sensibilité\nau mouvement",
|
"displayText": "Sensibilité\nau mouvement",
|
||||||
"description": "1=peu sensible | ... | 9=très sensible"
|
"description": "1=très peu sensible | ... | 9=extrêmement sensible"
|
||||||
},
|
},
|
||||||
"SleepTemperature": {
|
"SleepTemperature": {
|
||||||
"displayText": "Temp.\nveille",
|
"displayText": "Temp.\nveille",
|
||||||
@@ -252,15 +253,15 @@
|
|||||||
"description": "Sensibilité du capteur à effet Hall pour la mise en veille (1=peu sensible | ... | 9=très sensible)"
|
"description": "Sensibilité du capteur à effet Hall pour la mise en veille (1=peu sensible | ... | 9=très sensible)"
|
||||||
},
|
},
|
||||||
"HallEffSleepTimeout": {
|
"HallEffSleepTimeout": {
|
||||||
"displayText": "HallSensor\nSleepTime",
|
"displayText": "TempsVeille\nCapteurHall",
|
||||||
"description": "Intervalle avant le démarrage du \"mode veille\" lorsque l'effet Hall est supérieur au seuil"
|
"description": "Intervalle avant le démarrage du \"mode veille\" lorsque l'effet Hall est supérieur au seuil"
|
||||||
},
|
},
|
||||||
"TemperatureUnit": {
|
"TemperatureUnit": {
|
||||||
"displayText": "Unité de\ntempérature",
|
"displayText": "Unité de température",
|
||||||
"description": "C=Celsius | F=Fahrenheit"
|
"description": "C=Celsius | F=Fahrenheit"
|
||||||
},
|
},
|
||||||
"DisplayRotation": {
|
"DisplayRotation": {
|
||||||
"displayText": "Orientation\nde l'écran",
|
"displayText": "Orientation de l'écran",
|
||||||
"description": "D=droitier | G=gaucher | A=automatique"
|
"description": "D=droitier | G=gaucher | A=automatique"
|
||||||
},
|
},
|
||||||
"CooldownBlink": {
|
"CooldownBlink": {
|
||||||
@@ -268,7 +269,7 @@
|
|||||||
"description": "Faire clignoter la température lors du refroidissement tant que la panne est chaude"
|
"description": "Faire clignoter la température lors du refroidissement tant que la panne est chaude"
|
||||||
},
|
},
|
||||||
"ScrollingSpeed": {
|
"ScrollingSpeed": {
|
||||||
"displayText": "Vitesse de\ndéfilement",
|
"displayText": "Vitesse de défilement",
|
||||||
"description": "Vitesse de défilement du texte (R=rapide | L=lent)"
|
"description": "Vitesse de défilement du texte (R=rapide | L=lent)"
|
||||||
},
|
},
|
||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
@@ -276,7 +277,7 @@
|
|||||||
"description": "Inverser les boutons d'ajustement de température"
|
"description": "Inverser les boutons d'ajustement de température"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Vitesse\nanim. icônes",
|
"displayText": "Vitesse anim. icônes",
|
||||||
"description": "Vitesse des animations des icônes dans le menu (L=lente | M=moyenne | R=rapide)"
|
"description": "Vitesse des animations des icônes dans le menu (L=lente | M=moyenne | R=rapide)"
|
||||||
},
|
},
|
||||||
"AnimLoop": {
|
"AnimLoop": {
|
||||||
@@ -340,8 +341,8 @@
|
|||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"SolderingTipType": {
|
"SolderingTipType": {
|
||||||
"displayText": "Soldering\nTip Type",
|
"displayText": "Soudure\nType de panne",
|
||||||
"description": "Select the tip type fitted"
|
"description": "Séléctionner le type de panne utilisé"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "T",
|
"SettingStartSleepChar": "T",
|
||||||
"SettingStartSleepOffChar": "H",
|
"SettingStartSleepOffChar": "H",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "Z"
|
"SettingLockFullChar": "Z",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "A",
|
"SettingStartSleepChar": "A",
|
||||||
"SettingStartSleepOffChar": "Sz",
|
"SettingStartSleepOffChar": "Sz",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "T"
|
"SettingLockFullChar": "T",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "R",
|
"SettingStartSleepChar": "R",
|
||||||
"SettingStartSleepOffChar": "A",
|
"SettingStartSleepOffChar": "A",
|
||||||
"SettingLockBoostChar": "T",
|
"SettingLockBoostChar": "T",
|
||||||
"SettingLockFullChar": "C"
|
"SettingLockFullChar": "C",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "待",
|
"SettingStartSleepChar": "待",
|
||||||
"SettingStartSleepOffChar": "室",
|
"SettingStartSleepOffChar": "室",
|
||||||
"SettingLockBoostChar": "ブ",
|
"SettingLockBoostChar": "ブ",
|
||||||
"SettingLockFullChar": "全"
|
"SettingLockFullChar": "全",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "M",
|
"SettingStartSleepChar": "M",
|
||||||
"SettingStartSleepOffChar": "K",
|
"SettingStartSleepOffChar": "K",
|
||||||
"SettingLockBoostChar": "T",
|
"SettingLockBoostChar": "T",
|
||||||
"SettingLockFullChar": "V"
|
"SettingLockFullChar": "V",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "D",
|
"SettingStartSleepChar": "D",
|
||||||
"SettingStartSleepOffChar": "R",
|
"SettingStartSleepOffChar": "R",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "F"
|
"SettingLockFullChar": "F",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "S",
|
"SettingStartSleepChar": "S",
|
||||||
"SettingStartSleepOffChar": "Z",
|
"SettingStartSleepOffChar": "Z",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "V"
|
"SettingLockFullChar": "V",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "S",
|
"SettingStartSleepChar": "S",
|
||||||
"SettingStartSleepOffChar": "K",
|
"SettingStartSleepOffChar": "K",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "F"
|
"SettingLockFullChar": "F",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "Z",
|
"SettingStartSleepChar": "Z",
|
||||||
"SettingStartSleepOffChar": "O",
|
"SettingStartSleepOffChar": "O",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "P"
|
"SettingLockFullChar": "P",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "H",
|
"SettingStartSleepChar": "H",
|
||||||
"SettingStartSleepOffChar": "A",
|
"SettingStartSleepOffChar": "A",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "F"
|
"SettingLockFullChar": "F",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "Z",
|
"SettingStartSleepChar": "Z",
|
||||||
"SettingStartSleepOffChar": "R",
|
"SettingStartSleepOffChar": "R",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "F"
|
"SettingLockFullChar": "F",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "С",
|
"SettingStartSleepChar": "С",
|
||||||
"SettingStartSleepOffChar": "К",
|
"SettingStartSleepOffChar": "К",
|
||||||
"SettingLockBoostChar": "Т",
|
"SettingLockBoostChar": "Т",
|
||||||
"SettingLockFullChar": "П"
|
"SettingLockFullChar": "П",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "S",
|
"SettingStartSleepChar": "S",
|
||||||
"SettingStartSleepOffChar": "I",
|
"SettingStartSleepOffChar": "I",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "P"
|
"SettingLockFullChar": "P",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "Z",
|
"SettingStartSleepChar": "Z",
|
||||||
"SettingStartSleepOffChar": "V",
|
"SettingStartSleepOffChar": "V",
|
||||||
"SettingLockBoostChar": "L",
|
"SettingLockBoostChar": "L",
|
||||||
"SettingLockFullChar": "P"
|
"SettingLockFullChar": "P",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "С",
|
"SettingStartSleepChar": "С",
|
||||||
"SettingStartSleepOffChar": "X",
|
"SettingStartSleepOffChar": "X",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "F"
|
"SettingLockFullChar": "F",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "S",
|
"SettingStartSleepChar": "S",
|
||||||
"SettingStartSleepOffChar": "X",
|
"SettingStartSleepOffChar": "X",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "F"
|
"SettingLockFullChar": "F",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "V",
|
"SettingStartSleepChar": "V",
|
||||||
"SettingStartSleepOffChar": "R",
|
"SettingStartSleepOffChar": "R",
|
||||||
"SettingLockBoostChar": "T",
|
"SettingLockBoostChar": "T",
|
||||||
"SettingLockFullChar": "F"
|
"SettingLockFullChar": "F",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "U",
|
"SettingStartSleepChar": "U",
|
||||||
"SettingStartSleepOffChar": "S",
|
"SettingStartSleepOffChar": "S",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "F"
|
"SettingLockFullChar": "F",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "С",
|
"SettingStartSleepChar": "С",
|
||||||
"SettingStartSleepOffChar": "К",
|
"SettingStartSleepOffChar": "К",
|
||||||
"SettingLockBoostChar": "Т",
|
"SettingLockBoostChar": "Т",
|
||||||
"SettingLockFullChar": "П"
|
"SettingLockFullChar": "П",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "U",
|
"SettingStartSleepChar": "U",
|
||||||
"SettingStartSleepOffChar": "X",
|
"SettingStartSleepOffChar": "X",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "T"
|
"SettingLockFullChar": "T",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "Z",
|
"SettingStartSleepChar": "Z",
|
||||||
"SettingStartSleepOffChar": "R",
|
"SettingStartSleepOffChar": "R",
|
||||||
"SettingLockBoostChar": "B",
|
"SettingLockBoostChar": "B",
|
||||||
"SettingLockFullChar": "F"
|
"SettingLockFullChar": "F",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "待",
|
"SettingStartSleepChar": "待",
|
||||||
"SettingStartSleepOffChar": "室",
|
"SettingStartSleepOffChar": "室",
|
||||||
"SettingLockBoostChar": "增",
|
"SettingLockBoostChar": "增",
|
||||||
"SettingLockFullChar": "全"
|
"SettingLockFullChar": "全",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "待",
|
"SettingStartSleepChar": "待",
|
||||||
"SettingStartSleepOffChar": "室",
|
"SettingStartSleepOffChar": "室",
|
||||||
"SettingLockBoostChar": "增",
|
"SettingLockBoostChar": "增",
|
||||||
"SettingLockFullChar": "全"
|
"SettingLockFullChar": "全",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -81,7 +81,8 @@
|
|||||||
"SettingStartSleepChar": "待",
|
"SettingStartSleepChar": "待",
|
||||||
"SettingStartSleepOffChar": "室",
|
"SettingStartSleepOffChar": "室",
|
||||||
"SettingLockBoostChar": "增",
|
"SettingLockBoostChar": "增",
|
||||||
"SettingLockFullChar": "全"
|
"SettingLockFullChar": "全",
|
||||||
|
"SettingLockTempChar": "T"
|
||||||
},
|
},
|
||||||
"menuGroups": {
|
"menuGroups": {
|
||||||
"PowerMenu": {
|
"PowerMenu": {
|
||||||
|
|||||||
@@ -165,6 +165,12 @@
|
|||||||
"len": 1,
|
"len": 1,
|
||||||
"default": "F",
|
"default": "F",
|
||||||
"description": "Shown when the locking mode is set to lock all buttons."
|
"description": "Shown when the locking mode is set to lock all buttons."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "SettingLockTempChar",
|
||||||
|
"len": 1,
|
||||||
|
"default": "T",
|
||||||
|
"description": "Shown when the locking mode is set to lock all buttons except for -/B to change the temperature."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"menuGroups": [
|
"menuGroups": [
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
#include "TipThermoModel.h"
|
#include "TipThermoModel.h"
|
||||||
#include "USBPD.h"
|
#include "USBPD.h"
|
||||||
#include "Utils.hpp"
|
#include "Utils.hpp"
|
||||||
|
#include "bflb_platform.h"
|
||||||
#include "bl702_adc.h"
|
#include "bl702_adc.h"
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
#include "crc32.h"
|
#include "crc32.h"
|
||||||
@@ -282,16 +283,3 @@ void showBootLogo(void) {
|
|||||||
|
|
||||||
BootLogo::handleShowingLogo(scratch);
|
BootLogo::handleShowingLogo(scratch);
|
||||||
}
|
}
|
||||||
|
|
||||||
TemperatureType_t getCustomTipMaxInC() {
|
|
||||||
// have to lookup the max temp while being aware of the coe scaling value
|
|
||||||
float max_reading = ADC_MAX_READING - 1.0;
|
|
||||||
|
|
||||||
if (adcGainCoeffCal.adcGainCoeffEnable) {
|
|
||||||
max_reading /= adcGainCoeffCal.coe;
|
|
||||||
}
|
|
||||||
|
|
||||||
TemperatureType_t maximumTipTemp = TipThermoModel::convertTipRawADCToDegC(max_reading);
|
|
||||||
maximumTipTemp += getHandleTemperature(0) / 10; // Add handle offset
|
|
||||||
return maximumTipTemp - 1;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -161,7 +161,6 @@
|
|||||||
#define OLED_96x16 1
|
#define OLED_96x16 1
|
||||||
#define TEMP_NTC
|
#define TEMP_NTC
|
||||||
#define ACCEL_BMA
|
#define ACCEL_BMA
|
||||||
#define CUSTOM_MAX_TEMP_C 1 // Uses custom max temp lookup
|
|
||||||
#define ACCEL_SC7
|
#define ACCEL_SC7
|
||||||
#define HALL_SENSOR
|
#define HALL_SENSOR
|
||||||
#define HALL_SI7210
|
#define HALL_SI7210
|
||||||
|
|||||||
@@ -337,68 +337,51 @@ bool pdbs_dpm_evaluate_capability(const pd_msg *capabilities, pd_msg *request) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void add_v_record(pd_msg *cap, uint16_t voltage_mv, int numobj) {
|
||||||
|
|
||||||
|
uint16_t current = (voltage_mv) / getTipResistanceX10(); // In centi-amps
|
||||||
|
|
||||||
|
/* Add a PDO for the desired power. */
|
||||||
|
cap->obj[numobj] = PD_PDO_TYPE_FIXED | PD_PDO_SNK_FIXED_VOLTAGE_SET(PD_MV2PDV(voltage_mv)) | PD_PDO_SNK_FIXED_CURRENT_SET(current);
|
||||||
|
}
|
||||||
void pdbs_dpm_get_sink_capability(pd_msg *cap, const bool isPD3) {
|
void pdbs_dpm_get_sink_capability(pd_msg *cap, const bool isPD3) {
|
||||||
/* Keep track of how many PDOs we've added */
|
/* Keep track of how many PDOs we've added */
|
||||||
// int numobj = 0;
|
int numobj = 0;
|
||||||
|
|
||||||
// /* If we have no configuration or want something other than 5 V, add a PDO
|
/* If we have no configuration or want something other than 5 V, add a PDO
|
||||||
// * for vSafe5V */
|
* for vSafe5V */
|
||||||
// /* Minimum current, 5 V, and higher capability. */
|
/* Minimum current, 5 V, and higher capability. */
|
||||||
// cap->obj[numobj++] = PD_PDO_TYPE_FIXED | PD_PDO_SNK_FIXED_VOLTAGE_SET(PD_MV2PDV(5000)) | PD_PDO_SNK_FIXED_CURRENT_SET(DPM_MIN_CURRENT);
|
cap->obj[numobj++] = PD_PDO_TYPE_FIXED | PD_PDO_SNK_FIXED_VOLTAGE_SET(PD_MV2PDV(5000)) | PD_PDO_SNK_FIXED_CURRENT_SET(DPM_MIN_CURRENT);
|
||||||
|
// Voltages must be in order of lowest -> highest
|
||||||
|
#if USB_PD_VMAX >= 20
|
||||||
|
add_v_record(cap, 9000, numobj);
|
||||||
|
numobj++;
|
||||||
|
add_v_record(cap, 15000, numobj);
|
||||||
|
numobj++;
|
||||||
|
add_v_record(cap, 20000, numobj);
|
||||||
|
numobj++;
|
||||||
|
#elif USB_PD_VMAX >= 15
|
||||||
|
add_v_record(cap, 9000, numobj);
|
||||||
|
numobj++;
|
||||||
|
add_v_record(cap, 12000, numobj);
|
||||||
|
numobj++;
|
||||||
|
add_v_record(cap, 15000, numobj);
|
||||||
|
numobj++;
|
||||||
|
#elif USB_PD_VMAX >= 12
|
||||||
|
add_v_record(cap, 9000, numobj);
|
||||||
|
numobj++;
|
||||||
|
add_v_record(cap, 12000, numobj);
|
||||||
|
numobj++;
|
||||||
|
#elif USB_PD_VMAX >= 9
|
||||||
|
add_v_record(cap, 9000, numobj);
|
||||||
|
numobj++;
|
||||||
|
#endif
|
||||||
|
|
||||||
// /* Get the current we want */
|
/* Set the USB communications capable flag. */
|
||||||
// uint16_t voltage = USB_PD_VMAX * 1000; // in mv
|
cap->obj[0] |= PD_PDO_SNK_FIXED_USB_COMMS;
|
||||||
// if (requested_voltage_mv != 5000) {
|
|
||||||
// voltage = requested_voltage_mv;
|
|
||||||
// }
|
|
||||||
// uint16_t current = (voltage) / getTipResistanceX10(); // In centi-amps
|
|
||||||
|
|
||||||
// /* Add a PDO for the desired power. */
|
/* Set the Sink_Capabilities message header */
|
||||||
// cap->obj[numobj++] = PD_PDO_TYPE_FIXED | PD_PDO_SNK_FIXED_VOLTAGE_SET(PD_MV2PDV(voltage)) | PD_PDO_SNK_FIXED_CURRENT_SET(current);
|
cap->hdr = PD_DATAROLE_UFP | PD_SPECREV_3_0 | PD_POWERROLE_SINK | PD_MSGTYPE_SINK_CAPABILITIES | PD_NUMOBJ(numobj);
|
||||||
|
|
||||||
// /* Get the PDO from the voltage range */
|
|
||||||
// int8_t i = dpm_get_range_fixed_pdo_index(cap);
|
|
||||||
|
|
||||||
// /* If it's vSafe5V, set our vSafe5V's current to what we want */
|
|
||||||
// if (i == 0) {
|
|
||||||
// cap->obj[0] &= ~PD_PDO_SNK_FIXED_CURRENT;
|
|
||||||
// cap->obj[0] |= PD_PDO_SNK_FIXED_CURRENT_SET(current);
|
|
||||||
// } else {
|
|
||||||
// /* If we want more than 5 V, set the Higher Capability flag */
|
|
||||||
// if (PD_MV2PDV(voltage) != PD_MV2PDV(5000)) {
|
|
||||||
// cap->obj[0] |= PD_PDO_SNK_FIXED_HIGHER_CAP;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// /* If the range PDO is a different voltage than the preferred
|
|
||||||
// * voltage, add it to the array. */
|
|
||||||
// if (i > 0 && PD_PDO_SRC_FIXED_VOLTAGE_GET(cap->obj[i]) != PD_MV2PDV(voltage)) {
|
|
||||||
// cap->obj[numobj++] = PD_PDO_TYPE_FIXED | PD_PDO_SNK_FIXED_VOLTAGE_SET(PD_PDO_SRC_FIXED_VOLTAGE_GET(cap->obj[i])) | PD_PDO_SNK_FIXED_CURRENT_SET(PD_PDO_SRC_FIXED_CURRENT_GET(cap->obj[i]));
|
|
||||||
// }
|
|
||||||
|
|
||||||
// /* If we have three PDOs at this point, make sure the last two are
|
|
||||||
// * sorted by voltage. */
|
|
||||||
// if (numobj == 3 && (cap->obj[1] & PD_PDO_SNK_FIXED_VOLTAGE) > (cap->obj[2] & PD_PDO_SNK_FIXED_VOLTAGE)) {
|
|
||||||
// cap->obj[1] ^= cap->obj[2];
|
|
||||||
// cap->obj[2] ^= cap->obj[1];
|
|
||||||
// cap->obj[1] ^= cap->obj[2];
|
|
||||||
// }
|
|
||||||
// /* If we're using PD 3.0, add a PPS APDO for our desired voltage */
|
|
||||||
// if ((hdr_template & PD_HDR_SPECREV) >= PD_SPECREV_3_0) {
|
|
||||||
// cap->obj[numobj++]
|
|
||||||
// = PD_PDO_TYPE_AUGMENTED | PD_APDO_TYPE_PPS | PD_APDO_PPS_MAX_VOLTAGE_SET(PD_MV2PAV(voltage)) | PD_APDO_PPS_MIN_VOLTAGE_SET(PD_MV2PAV(voltage)) |
|
|
||||||
// PD_APDO_PPS_CURRENT_SET(PD_CA2PAI(current));
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// /* Set the unconstrained power flag. */
|
|
||||||
// if (_unconstrained_power) {
|
|
||||||
// cap->obj[0] |= PD_PDO_SNK_FIXED_UNCONSTRAINED;
|
|
||||||
// }
|
|
||||||
// /* Set the USB communications capable flag. */
|
|
||||||
// cap->obj[0] |= PD_PDO_SNK_FIXED_USB_COMMS;
|
|
||||||
|
|
||||||
// /* Set the Sink_Capabilities message header */
|
|
||||||
// cap->hdr = hdr_template | PD_MSGTYPE_SINK_CAPABILITIES | PD_NUMOBJ(numobj);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -114,9 +114,10 @@ typedef enum {
|
|||||||
} usbpdMode_t;
|
} usbpdMode_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
DISABLED = 0, // Locking buttons is disabled
|
DISABLED = 0, // All buttons are unlocked
|
||||||
BOOST = 1, // Locking buttons for Boost mode only
|
BOOST = 1, // All buttons are locked except boost
|
||||||
FULL = 2, // Locking buttons for Boost mode AND for Soldering mode
|
FULL = 2, // All buttons are locked
|
||||||
|
TEMP = 3, // All buttons are locked except -/B to change the temperature
|
||||||
} lockingMode_t;
|
} lockingMode_t;
|
||||||
|
|
||||||
/* Selection of the soldering tip
|
/* Selection of the soldering tip
|
||||||
|
|||||||
@@ -147,6 +147,7 @@ struct TranslationIndexTable {
|
|||||||
uint16_t SettingStartSleepOffChar;
|
uint16_t SettingStartSleepOffChar;
|
||||||
uint16_t SettingLockBoostChar;
|
uint16_t SettingLockBoostChar;
|
||||||
uint16_t SettingLockFullChar;
|
uint16_t SettingLockFullChar;
|
||||||
|
uint16_t SettingLockTempChar;
|
||||||
uint16_t USBPDModeDefault;
|
uint16_t USBPDModeDefault;
|
||||||
uint16_t USBPDModeNoDynamic;
|
uint16_t USBPDModeNoDynamic;
|
||||||
uint16_t USBPDModeSafe;
|
uint16_t USBPDModeSafe;
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ typedef struct {
|
|||||||
} SettingConstants;
|
} SettingConstants;
|
||||||
|
|
||||||
static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOptionsLength] = {
|
static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOptionsLength] = {
|
||||||
//{ min, max, increment, default}
|
//{ min, max, increment, default}
|
||||||
{ MIN_TEMP_C, MAX_TEMP_F, 5, SOLDERING_TEMP}, // SolderingTemp
|
{ MIN_TEMP_C, MAX_TEMP_F, 5, SOLDERING_TEMP}, // SolderingTemp
|
||||||
{ MIN_TEMP_C, MAX_TEMP_F, 5, 150}, // SleepTemp
|
{ MIN_TEMP_C, MAX_TEMP_F, 5, 150}, // SleepTemp
|
||||||
{ 0, 15, 1, SLEEP_TIME}, // SleepTime
|
{ 0, 15, 1, SLEEP_TIME}, // SleepTime
|
||||||
@@ -72,7 +72,7 @@ static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOp
|
|||||||
{ 0, 1, 1, DETAILED_SOLDERING}, // DetailedSoldering
|
{ 0, 1, 1, DETAILED_SOLDERING}, // DetailedSoldering
|
||||||
{ 0, (uint16_t)(HasFahrenheit ? 1 : 0), 1, TEMPERATURE_INF}, // TemperatureInF
|
{ 0, (uint16_t)(HasFahrenheit ? 1 : 0), 1, TEMPERATURE_INF}, // TemperatureInF
|
||||||
{ 0, 1, 1, DESCRIPTION_SCROLL_SPEED}, // DescriptionScrollSpeed
|
{ 0, 1, 1, DESCRIPTION_SCROLL_SPEED}, // DescriptionScrollSpeed
|
||||||
{ 0, 2, 1, LOCKING_MODE}, // LockingMode
|
{ 0, 3, 1, LOCKING_MODE}, // LockingMode
|
||||||
{ 0, 99, 1, POWER_PULSE_DEFAULT}, // KeepAwakePulse
|
{ 0, 99, 1, POWER_PULSE_DEFAULT}, // KeepAwakePulse
|
||||||
{ 1, POWER_PULSE_WAIT_MAX, 1, POWER_PULSE_WAIT_DEFAULT}, // KeepAwakePulseWait
|
{ 1, POWER_PULSE_WAIT_MAX, 1, POWER_PULSE_WAIT_DEFAULT}, // KeepAwakePulseWait
|
||||||
{ 1, POWER_PULSE_DURATION_MAX, 1, POWER_PULSE_DURATION_DEFAULT}, // KeepAwakePulseDuration
|
{ 1, POWER_PULSE_DURATION_MAX, 1, POWER_PULSE_DURATION_DEFAULT}, // KeepAwakePulseDuration
|
||||||
|
|||||||
@@ -635,6 +635,9 @@ static void displayLockingMode(void) {
|
|||||||
case lockingMode_t::FULL:
|
case lockingMode_t::FULL:
|
||||||
OLED::print(translatedString(Tr->SettingLockFullChar), FontStyle::LARGE);
|
OLED::print(translatedString(Tr->SettingLockFullChar), FontStyle::LARGE);
|
||||||
break;
|
break;
|
||||||
|
case lockingMode_t::TEMP:
|
||||||
|
OLED::print(translatedString(Tr->SettingLockTempChar), FontStyle::LARGE);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
OLED::drawUnavailableIcon();
|
OLED::drawUnavailableIcon();
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt)
|
|||||||
cxt->scratch_state.state1 = 3;
|
cxt->scratch_state.state1 = 3;
|
||||||
break;
|
break;
|
||||||
case BUTTON_F_LONG:
|
case BUTTON_F_LONG:
|
||||||
if (getSettingValue(SettingsOptions::BoostTemp) && (getSettingValue(SettingsOptions::LockingMode) == lockingMode_t::BOOST)) {
|
if (getSettingValue(SettingsOptions::BoostTemp) && (getSettingValue(SettingsOptions::LockingMode) >= lockingMode_t::BOOST ||)) {
|
||||||
cxt->scratch_state.state2 = 1;
|
cxt->scratch_state.state2 = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -65,6 +65,9 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case BUTTON_F_SHORT:
|
case BUTTON_F_SHORT:
|
||||||
|
if (getSettingValue(SettingsOptions::LockingMode) == lockingMode_t::TEMP) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
case BUTTON_B_SHORT:
|
case BUTTON_B_SHORT:
|
||||||
cxt->transitionMode = TransitionAnimation::Left;
|
cxt->transitionMode = TransitionAnimation::Left;
|
||||||
return OperatingMode::TemperatureAdjust;
|
return OperatingMode::TemperatureAdjust;
|
||||||
|
|||||||
@@ -397,6 +397,9 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue,
|
|||||||
/* Check for multiplication overflow. */
|
/* Check for multiplication overflow. */
|
||||||
configASSERT( ( uxItemSize == 0 ) || ( uxQueueLength == ( xQueueSizeInBytes / uxItemSize ) ) );
|
configASSERT( ( uxItemSize == 0 ) || ( uxQueueLength == ( xQueueSizeInBytes / uxItemSize ) ) );
|
||||||
|
|
||||||
|
/* Check for addition overflow. */
|
||||||
|
configASSERT( ( sizeof( Queue_t ) + xQueueSizeInBytes ) > xQueueSizeInBytes );
|
||||||
|
|
||||||
/* Allocate the queue and storage area. Justification for MISRA
|
/* Allocate the queue and storage area. Justification for MISRA
|
||||||
* deviation as follows: pvPortMalloc() always ensures returned memory
|
* deviation as follows: pvPortMalloc() always ensures returned memory
|
||||||
* blocks are aligned per the requirements of the MCU stack. In this case
|
* blocks are aligned per the requirements of the MCU stack. In this case
|
||||||
|
|||||||
Reference in New Issue
Block a user