mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Implemented switching A and B buttons, closing #2034
getButtonState() now have an option int/bool argument to swap the result via XOR
This commit is contained in:
@@ -272,8 +272,12 @@
|
|||||||
"description": "Хуткасць гартання тэксту (М=марудна | Х=хутка)"
|
"description": "Хуткасць гартання тэксту (М=марудна | Х=хутка)"
|
||||||
},
|
},
|
||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Інвертаваць\nкнопкі",
|
"displayText": "Інвертаваць\nкнопкі +/-",
|
||||||
"description": "Інвертаваць кнопкі вымярэння тэмпературы"
|
"description": "Інвертаваць кнопкі вымярэння тэмпературы"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Інвертаваць\nкнопкі A/B",
|
||||||
|
"description": "Інвертаваць кнопкі навігацыі ў меню"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Хуткасць\nанімацыі",
|
"displayText": "Хуткасць\nанімацыі",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Размяна\nбутони +/-",
|
"displayText": "Размяна\nбутони +/-",
|
||||||
"description": "Обръщане на бутоните + и - за промяна на температурата на човка на поялника"
|
"description": "Обръщане на бутоните + и - за промяна на температурата на човка на поялника"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Размяна\nбутони А/В",
|
||||||
|
"description": "Обръщане бутоните А и В за навигация в менютата"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Скорост на\nанимацията",
|
"displayText": "Скорост на\nанимацията",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Prohodit\ntl. +-?",
|
"displayText": "Prohodit\ntl. +-?",
|
||||||
"description": "Prohodit tlačítka pro změnu teploty"
|
"description": "Prohodit tlačítka pro změnu teploty"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Anim.\nrychlost",
|
"displayText": "Anim.\nrychlost",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Skift\n+ - tasterne",
|
"displayText": "Skift\n+ - tasterne",
|
||||||
"description": "Skift tildeling af knapper til temperaturjustering"
|
"description": "Skift tildeling af knapper til temperaturjustering"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Anim.\nHastighed",
|
"displayText": "Anim.\nHastighed",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "+- Tasten\numkehren",
|
"displayText": "+- Tasten\numkehren",
|
||||||
"description": "Tastenbelegung zur Temperaturänderung umkehren"
|
"description": "Tastenbelegung zur Temperaturänderung umkehren"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Anim.\nGeschw.",
|
"displayText": "Anim.\nGeschw.",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Αντιστροφή\nπλήκτρων + -",
|
"displayText": "Αντιστροφή\nπλήκτρων + -",
|
||||||
"description": "Αντιστροφή διάταξης πλήκτρων στη ρύθμιση θερμοκρασίας"
|
"description": "Αντιστροφή διάταξης πλήκτρων στη ρύθμιση θερμοκρασίας"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Ταχύτητα\nκιν. εικονιδ.",
|
"displayText": "Ταχύτητα\nκιν. εικονιδ.",
|
||||||
|
|||||||
@@ -272,8 +272,12 @@
|
|||||||
"description": "Scrolling speed of info text (S=slow | F=fast)"
|
"description": "Scrolling speed of info text (S=slow | F=fast)"
|
||||||
},
|
},
|
||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Swap\n+ - keys",
|
"displayText": "Swap\n+/- keys",
|
||||||
"description": "Reverse assignment of buttons for temperature adjustment"
|
"description": "Reverse assignment of buttons for temperature adjustment"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Anim.\nspeed",
|
"displayText": "Anim.\nspeed",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Invertir\nbotones +/-",
|
"displayText": "Invertir\nbotones +/-",
|
||||||
"description": "Invertir botones de ajuste de temperatura"
|
"description": "Invertir botones de ajuste de temperatura"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Anim.\nvelocidad",
|
"displayText": "Anim.\nvelocidad",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Vaheta\n+ - nupud",
|
"displayText": "Vaheta\n+ - nupud",
|
||||||
"description": "Temperatuurinuppude asukohtade vahetus"
|
"description": "Temperatuurinuppude asukohtade vahetus"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Anim.\nkiirus",
|
"displayText": "Anim.\nkiirus",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Suunnanvaihto\n+ - näppäimille",
|
"displayText": "Suunnanvaihto\n+ - näppäimille",
|
||||||
"description": "Lämpötilapainikkeiden suunnan vaihtaminen"
|
"description": "Lämpötilapainikkeiden suunnan vaihtaminen"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Animaation\nnopeus",
|
"displayText": "Animaation\nnopeus",
|
||||||
|
|||||||
@@ -272,8 +272,12 @@
|
|||||||
"description": "Vitesse de défilement du texte (R=rapide | L=lent)"
|
"description": "Vitesse de défilement du texte (R=rapide | L=lent)"
|
||||||
},
|
},
|
||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Inverser les\ntouches + -",
|
"displayText": "Inverser les\ntouches +/-",
|
||||||
"description": "Inverser les boutons d'ajustement de température"
|
"description": "Inverser les boutons d'ajustement de température"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Inverser les\ntouches A/B",
|
||||||
|
"description": "Inverser les boutons de navigation du menu"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Vitesse\nanim. icônes",
|
"displayText": "Vitesse\nanim. icônes",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Zamjena\n+ - tipki",
|
"displayText": "Zamjena\n+ - tipki",
|
||||||
"description": "Zamjenjuje funkciju gornje i donje tipke za podešavanje temperature"
|
"description": "Zamjenjuje funkciju gornje i donje tipke za podešavanje temperature"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Brzina\nanimacije",
|
"displayText": "Brzina\nanimacije",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "+/- gomb\nmegfordítása",
|
"displayText": "+/- gomb\nmegfordítása",
|
||||||
"description": "Forrasztó hegy hőmérsékletállító gombok felcserélése"
|
"description": "Forrasztó hegy hőmérsékletállító gombok felcserélése"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Animáció\nsebessége",
|
"displayText": "Animáció\nsebessége",
|
||||||
|
|||||||
@@ -272,8 +272,12 @@
|
|||||||
"description": "Imposta la velocità di scorrimento del testo [L: lenta; V: veloce]"
|
"description": "Imposta la velocità di scorrimento del testo [L: lenta; V: veloce]"
|
||||||
},
|
},
|
||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Inversione\ntasti",
|
"displayText": "Inversione\ntasti +/-",
|
||||||
"description": "Inverti i tasti per aumentare o diminuire la temperatura della punta"
|
"description": "Inverti i tasti per aumentare o diminuire la temperatura della punta"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Inversione\ntasti A/B",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Velocità\nanimazioni",
|
"displayText": "Velocità\nanimazioni",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "キー入れ替え",
|
"displayText": "キー入れ替え",
|
||||||
"description": "温度設定時に+ボタンと-ボタンを入れ替える"
|
"description": "温度設定時に+ボタンと-ボタンを入れ替える"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "動画の速度",
|
"displayText": "動画の速度",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Sukeisti + -\nmygtukus?",
|
"displayText": "Sukeisti + -\nmygtukus?",
|
||||||
"description": "Sukeisti + - temperatūros keitimo mygtukus vietomis"
|
"description": "Sukeisti + - temperatūros keitimo mygtukus vietomis"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Animacijų\ngreitis",
|
"displayText": "Animacijų\ngreitis",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Bytt\n+ - kn.",
|
"displayText": "Bytt\n+ - kn.",
|
||||||
"description": "Bytt om på knappene for å stille temperatur"
|
"description": "Bytt om på knappene for å stille temperatur"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Anim.\nhastighet",
|
"displayText": "Anim.\nhastighet",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Wissel\n+ - knoppen",
|
"displayText": "Wissel\n+ - knoppen",
|
||||||
"description": "Wissel de knoppen voor temperatuur controle om"
|
"description": "Wissel de knoppen voor temperatuur controle om"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Anim.\nsnelheid",
|
"displayText": "Anim.\nsnelheid",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Wissel\n+ - knoppen",
|
"displayText": "Wissel\n+ - knoppen",
|
||||||
"description": "Wissel de knoppen voor temperatuur controle"
|
"description": "Wissel de knoppen voor temperatuur controle"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Anim.\nsnelheid",
|
"displayText": "Anim.\nsnelheid",
|
||||||
|
|||||||
@@ -272,8 +272,12 @@
|
|||||||
"description": "Szybkość przewijania tekstu"
|
"description": "Szybkość przewijania tekstu"
|
||||||
},
|
},
|
||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Zamień przyc.\n+ -",
|
"displayText": "Zamień przyc.\n+/-",
|
||||||
"description": "Zamienia działanie przycisków zmiany temperatury grotu"
|
"description": "Zamienia działanie przycisków zmiany temperatury grotu"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Zamień przyc.\nA/B",
|
||||||
|
"description": "Zamienia działanie przycisków nawigacyjne menu"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Prędkosć\nanimacji",
|
"displayText": "Prędkosć\nanimacji",
|
||||||
|
|||||||
@@ -272,8 +272,12 @@
|
|||||||
"description": "Velocidade a que o texto de ajuda é apresentado"
|
"description": "Velocidade a que o texto de ajuda é apresentado"
|
||||||
},
|
},
|
||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Trocar\nbotões + -",
|
"displayText": "Trocar\nbotões +/-",
|
||||||
"description": "Inverte o funcionamento dos botões de ajuste da temperatura"
|
"description": "Inverte o funcionamento dos botões de ajuste da temperatura"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Velocidade\nde animação",
|
"displayText": "Velocidade\nde animação",
|
||||||
|
|||||||
@@ -272,8 +272,12 @@
|
|||||||
"description": "Viteză derulare text cu informatii la (S=lent | F=rapid)"
|
"description": "Viteză derulare text cu informatii la (S=lent | F=rapid)"
|
||||||
},
|
},
|
||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Inversare\n+ - butoane",
|
"displayText": "Inversare\n+/- butoane",
|
||||||
"description": "Inversarea butoanelor de reglare a temperaturii"
|
"description": "Inversarea butoanelor de reglare a temperaturii"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Animaţii\nviteză",
|
"displayText": "Animaţii\nviteză",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Поменять\nкнопки +/-",
|
"displayText": "Поменять\nкнопки +/-",
|
||||||
"description": "Поменять кнопки изменения температуры"
|
"description": "Поменять кнопки изменения температуры"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Скорость\nанимации",
|
"displayText": "Скорость\nанимации",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Otočenie\ntlačidiel +/-",
|
"displayText": "Otočenie\ntlačidiel +/-",
|
||||||
"description": "Prehodenie tlačidiel na nastavovanie teploty"
|
"description": "Prehodenie tlačidiel na nastavovanie teploty"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Rýchlosť\nanimácií",
|
"displayText": "Rýchlosť\nanimácií",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Obrni\ntipki + -?",
|
"displayText": "Obrni\ntipki + -?",
|
||||||
"description": "Zamenjaj funkciji gumbov."
|
"description": "Zamenjaj funkciji gumbov."
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Anim.\nspeed",
|
"displayText": "Anim.\nspeed",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Swap\n+ - keys",
|
"displayText": "Swap\n+ - keys",
|
||||||
"description": "Reverse assignment of buttons for temperature adjustment"
|
"description": "Reverse assignment of buttons for temperature adjustment"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Anim.\nspeed",
|
"displayText": "Anim.\nspeed",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Swap\n+ - keys",
|
"displayText": "Swap\n+ - keys",
|
||||||
"description": "Reverse assignment of buttons for temperature adjustment"
|
"description": "Reverse assignment of buttons for temperature adjustment"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Anim.\nspeed",
|
"displayText": "Anim.\nspeed",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Omvända\n+- knappar",
|
"displayText": "Omvända\n+- knappar",
|
||||||
"description": "Omvänd ordning för temperaturjustering via plus/minus knapparna"
|
"description": "Omvänd ordning för temperaturjustering via plus/minus knapparna"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Anim.-\nhastighet",
|
"displayText": "Anim.-\nhastighet",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Düğme Yerleri\nRotasyonu",
|
"displayText": "Düğme Yerleri\nRotasyonu",
|
||||||
"description": "\"Düğme Yerleri Rotasyonu\" Sıcaklık ayar düğmelerinin yerini değiştirin"
|
"description": "\"Düğme Yerleri Rotasyonu\" Sıcaklık ayar düğmelerinin yerini değiştirin"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Animasyon\nHızı",
|
"displayText": "Animasyon\nHızı",
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"UIMenu": {
|
"UIMenu": {
|
||||||
"displayText": "Параметри\nінтерфейсу",
|
"displayText": "Параметри\nвзаємодії",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"AdvancedMenu": {
|
"AdvancedMenu": {
|
||||||
@@ -276,7 +276,11 @@
|
|||||||
"description": "Обернути кнопки зміни t°"
|
"description": "Обернути кнопки зміни t°"
|
||||||
},
|
},
|
||||||
"ReverseButtonNav": {
|
"ReverseButtonNav": {
|
||||||
"displayText": "Обернути\nкнопки AB?",
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Обернути\nкнопки A B?",
|
||||||
"description": "Обернути кнопки навігації"
|
"description": "Обернути кнопки навігації"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "(+) va (-) tugmalarni\nalmashtirish",
|
"displayText": "(+) va (-) tugmalarni\nalmashtirish",
|
||||||
"description": "Harorat o'zgarishi uchun tugmachalarni vazifasini almashish"
|
"description": "Harorat o'zgarishi uchun tugmachalarni vazifasini almashish"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Anim.\ntezligi",
|
"displayText": "Anim.\ntezligi",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "Đao nguoc\nnút + -",
|
"displayText": "Đao nguoc\nnút + -",
|
||||||
"description": "Đao nguoc chuc năng các nút đieu chinh nhiet đo"
|
"description": "Đao nguoc chuc năng các nút đieu chinh nhiet đo"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "Toc đo\nhoat anh",
|
"displayText": "Toc đo\nhoat anh",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "反轉加減掣",
|
"displayText": "反轉加減掣",
|
||||||
"description": "反轉調校温度時加減掣嘅方向"
|
"description": "反轉調校温度時加減掣嘅方向"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "動畫速度",
|
"displayText": "動畫速度",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "调换加减键",
|
"displayText": "调换加减键",
|
||||||
"description": "调校温度时更换加减键的方向"
|
"description": "调校温度时更换加减键的方向"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "动画速度",
|
"displayText": "动画速度",
|
||||||
|
|||||||
@@ -274,6 +274,10 @@
|
|||||||
"ReverseButtonTempChange": {
|
"ReverseButtonTempChange": {
|
||||||
"displayText": "調換加減鍵",
|
"displayText": "調換加減鍵",
|
||||||
"description": "調校溫度時調換加減鍵的方向"
|
"description": "調校溫度時調換加減鍵的方向"
|
||||||
|
},
|
||||||
|
"ReverseButtonNav": {
|
||||||
|
"displayText": "Swap\nA/B keys",
|
||||||
|
"description": "Reverse assignment of buttons for menu navigation"
|
||||||
},
|
},
|
||||||
"AnimSpeed": {
|
"AnimSpeed": {
|
||||||
"displayText": "動畫速度",
|
"displayText": "動畫速度",
|
||||||
|
|||||||
@@ -472,6 +472,12 @@
|
|||||||
"maxLen": 6,
|
"maxLen": 6,
|
||||||
"maxLen2": 15,
|
"maxLen2": 15,
|
||||||
"description": "Swaps which button increments and decrements on temperature change screens."
|
"description": "Swaps which button increments and decrements on temperature change screens."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ReverseButtonNav",
|
||||||
|
"maxLen": 6,
|
||||||
|
"maxLen2": 15,
|
||||||
|
"description": "Swaps which button are used as Select and which as Scroll/Go-back on menu screens."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "AnimSpeed",
|
"id": "AnimSpeed",
|
||||||
|
|||||||
@@ -57,7 +57,8 @@
|
|||||||
*/
|
*/
|
||||||
#define ORIENTATION_MODE 0 // 0: Right 1:Left 2:Automatic - Default right
|
#define ORIENTATION_MODE 0 // 0: Right 1:Left 2:Automatic - Default right
|
||||||
#define MAX_ORIENTATION_MODE 1 // Unlikely to ever change
|
#define MAX_ORIENTATION_MODE 1 // Unlikely to ever change
|
||||||
#define REVERSE_BUTTON_TEMP_CHANGE 0 // 0:Default 1:Reverse - Reverse the plus and minus button assigment for temperature change
|
#define REVERSE_BUTTON_TEMP_CHANGE 0 // 0:Default 1:Reverse - Reverse the plus and minus button assignment for temperature change
|
||||||
|
#define REVERSE_BUTTON_NAV 0 // 0:Default 1:Reverse - Reverse the A and B button assignment in the menus
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OLED Brightness
|
* OLED Brightness
|
||||||
|
|||||||
@@ -57,7 +57,8 @@
|
|||||||
*/
|
*/
|
||||||
#define ORIENTATION_MODE 2 // 0: Right 1:Left 2:Automatic - Default Automatic
|
#define ORIENTATION_MODE 2 // 0: Right 1:Left 2:Automatic - Default Automatic
|
||||||
#define MAX_ORIENTATION_MODE 2 // Up to auto
|
#define MAX_ORIENTATION_MODE 2 // Up to auto
|
||||||
#define REVERSE_BUTTON_TEMP_CHANGE 0 // 0:Default 1:Reverse - Reverse the plus and minus button assigment for temperature change
|
#define REVERSE_BUTTON_TEMP_CHANGE 0 // 0:Default 1:Reverse - Reverse the plus and minus button assignment for temperature change
|
||||||
|
#define REVERSE_BUTTON_NAV 0 // 0:Default 1:Reverse - Reverse the A and B button assignment in the menus
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OLED Brightness
|
* OLED Brightness
|
||||||
|
|||||||
@@ -57,7 +57,8 @@
|
|||||||
*/
|
*/
|
||||||
#define ORIENTATION_MODE 2 // 0: Right 1:Left 2:Automatic - Default Automatic
|
#define ORIENTATION_MODE 2 // 0: Right 1:Left 2:Automatic - Default Automatic
|
||||||
#define MAX_ORIENTATION_MODE 2 // Up to auto
|
#define MAX_ORIENTATION_MODE 2 // Up to auto
|
||||||
#define REVERSE_BUTTON_TEMP_CHANGE 0 // 0:Default 1:Reverse - Reverse the plus and minus button assigment for temperature change
|
#define REVERSE_BUTTON_TEMP_CHANGE 0 // 0:Default 1:Reverse - Reverse the plus and minus button assignment for temperature change
|
||||||
|
#define REVERSE_BUTTON_NAV 0 // 0:Default 1:Reverse - Reverse the A and B button assignment in the menus
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OLED Brightness
|
* OLED Brightness
|
||||||
|
|||||||
@@ -57,7 +57,8 @@
|
|||||||
*/
|
*/
|
||||||
#define ORIENTATION_MODE 2 // 0: Right 1:Left 2:Automatic - Default Automatic
|
#define ORIENTATION_MODE 2 // 0: Right 1:Left 2:Automatic - Default Automatic
|
||||||
#define MAX_ORIENTATION_MODE 2 // Up to auto
|
#define MAX_ORIENTATION_MODE 2 // Up to auto
|
||||||
#define REVERSE_BUTTON_TEMP_CHANGE 0 // 0:Default 1:Reverse - Reverse the plus and minus button assigment for temperature change
|
#define REVERSE_BUTTON_TEMP_CHANGE 0 // 0:Default 1:Reverse - Reverse the plus and minus button assignment for temperature change
|
||||||
|
#define REVERSE_BUTTON_NAV 0 // 0:Default 1:Reverse - Reverse the A and B button assignment in the menus
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OLED Brightness
|
* OLED Brightness
|
||||||
|
|||||||
@@ -66,7 +66,8 @@
|
|||||||
*/
|
*/
|
||||||
#define ORIENTATION_MODE 0 // 0: Right 1:Left (2:Automatic N/A)
|
#define ORIENTATION_MODE 0 // 0: Right 1:Left (2:Automatic N/A)
|
||||||
#define MAX_ORIENTATION_MODE 1 // Disable auto mode
|
#define MAX_ORIENTATION_MODE 1 // Disable auto mode
|
||||||
#define REVERSE_BUTTON_TEMP_CHANGE 0 // 0:Default 1:Reverse - Reverse the plus and minus button assigment for temperature change
|
#define REVERSE_BUTTON_TEMP_CHANGE 0 // 0:Default 1:Reverse - Reverse the plus and minus button assignment for temperature change
|
||||||
|
#define REVERSE_BUTTON_NAV 0 // 0:Default 1:Reverse - Reverse the A and B button assignment in the menus
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Temp change settings
|
* Temp change settings
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include <Buttons.hpp>
|
#include <Buttons.hpp>
|
||||||
TickType_t lastButtonTime = 0;
|
TickType_t lastButtonTime = 0;
|
||||||
|
|
||||||
ButtonState getButtonState() {
|
ButtonState getButtonState(bool revert) {
|
||||||
/*
|
/*
|
||||||
* Read in the buttons and then determine if a state change needs to occur
|
* Read in the buttons and then determine if a state change needs to occur
|
||||||
*/
|
*/
|
||||||
@@ -28,8 +28,8 @@ ButtonState getButtonState() {
|
|||||||
static TickType_t previousStateChange = 0;
|
static TickType_t previousStateChange = 0;
|
||||||
const TickType_t timeout = TICKS_100MS * 4;
|
const TickType_t timeout = TICKS_100MS * 4;
|
||||||
uint8_t currentState;
|
uint8_t currentState;
|
||||||
currentState = (getButtonA()) << 0;
|
currentState = (getButtonA()) << (0 xor revert);
|
||||||
currentState |= (getButtonB()) << 1;
|
currentState |= (getButtonB()) << (1 xor revert);
|
||||||
|
|
||||||
if (currentState) {
|
if (currentState) {
|
||||||
lastButtonTime = xTaskGetTickCount();
|
lastButtonTime = xTaskGetTickCount();
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ enum ButtonState {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Returns what buttons are pressed (if any)
|
// Returns what buttons are pressed (if any)
|
||||||
ButtonState getButtonState();
|
ButtonState getButtonState(bool revert=0);
|
||||||
// Helpers
|
// Helpers
|
||||||
void waitForButtonPressOrTimeout(TickType_t timeout);
|
void waitForButtonPressOrTimeout(TickType_t timeout);
|
||||||
void waitForButtonPress();
|
void waitForButtonPress();
|
||||||
|
|||||||
@@ -47,37 +47,38 @@ enum SettingsOptions {
|
|||||||
CalibrationOffset = 23, // This stores the temperature offset for this tip in the iron.
|
CalibrationOffset = 23, // This stores the temperature offset for this tip in the iron.
|
||||||
PowerLimit = 24, // Maximum power iron allowed to output
|
PowerLimit = 24, // Maximum power iron allowed to output
|
||||||
ReverseButtonTempChangeEnabled = 25, // Change the plus and minus button assigment
|
ReverseButtonTempChangeEnabled = 25, // Change the plus and minus button assigment
|
||||||
TempChangeLongStep = 26, // Temperature-change-increment on long button press
|
ReverseButtonNavEnabled = 26, // Change the A and B button assigment in menus
|
||||||
TempChangeShortStep = 27, // Temperature-change-increment on short button press
|
TempChangeLongStep = 27, // Temperature-change-increment on long button press
|
||||||
HallEffectSensitivity = 28, // Operating mode of the hall effect sensor
|
TempChangeShortStep = 28, // Temperature-change-increment on short button press
|
||||||
AccelMissingWarningCounter = 29, // Counter of how many times we have warned we cannot detect the accelerometer
|
HallEffectSensitivity = 29, // Operating mode of the hall effect sensor
|
||||||
PDMissingWarningCounter = 30, // Counter of how many times we have warned we cannot detect the pd interface
|
AccelMissingWarningCounter = 30, // Counter of how many times we have warned we cannot detect the accelerometer
|
||||||
UILanguage = 31, // Selected UI Language code, null-terminated *only if* the length is less than 8 chars
|
PDMissingWarningCounter = 31, // Counter of how many times we have warned we cannot detect the pd interface
|
||||||
PDNegTimeout = 32, // PD timeout in 100ms steps
|
UILanguage = 32, // Selected UI Language code, null-terminated *only if* the length is less than 8 chars
|
||||||
OLEDInversion = 33, // Invert the colours on the display
|
PDNegTimeout = 33, // PD timeout in 100ms steps
|
||||||
OLEDBrightness = 34, // Brightness for the OLED display
|
OLEDInversion = 34, // Invert the colours on the display
|
||||||
LOGOTime = 35, // Duration the logo will be displayed for
|
OLEDBrightness = 35, // Brightness for the OLED display
|
||||||
CalibrateCJC = 36, // Toggle calibrate CJC at next boot
|
LOGOTime = 36, // Duration the logo will be displayed for
|
||||||
BluetoothLE = 37, // Toggle BLE if present
|
CalibrateCJC = 37, // Toggle calibrate CJC at next boot
|
||||||
USBPDMode = 38, // Toggle PPS & EPR
|
BluetoothLE = 38, // Toggle BLE if present
|
||||||
ProfilePhases = 39, // Number of profile mode phases
|
USBPDMode = 39, // Toggle PPS & EPR
|
||||||
ProfilePreheatTemp = 40, // Temperature to preheat to before the first phase
|
ProfilePhases = 40, // Number of profile mode phases
|
||||||
ProfilePreheatSpeed = 41, // Maximum allowed preheat speed in degrees per second
|
ProfilePreheatTemp = 41, // Temperature to preheat to before the first phase
|
||||||
ProfilePhase1Temp = 42, // Temperature to target for the end of phase 1
|
ProfilePreheatSpeed = 42, // Maximum allowed preheat speed in degrees per second
|
||||||
ProfilePhase1Duration = 43, // Target duration for phase 1
|
ProfilePhase1Temp = 43, // Temperature to target for the end of phase 1
|
||||||
ProfilePhase2Temp = 44, // Temperature to target for the end of phase 2
|
ProfilePhase1Duration = 44, // Target duration for phase 1
|
||||||
ProfilePhase2Duration = 45, // Target duration for phase 2
|
ProfilePhase2Temp = 45, // Temperature to target for the end of phase 2
|
||||||
ProfilePhase3Temp = 46, // Temperature to target for the end of phase 3
|
ProfilePhase2Duration = 46, // Target duration for phase 2
|
||||||
ProfilePhase3Duration = 47, // Target duration for phase 3
|
ProfilePhase3Temp = 47, // Temperature to target for the end of phase 3
|
||||||
ProfilePhase4Temp = 48, // Temperature to target for the end of phase 4
|
ProfilePhase3Duration = 48, // Target duration for phase 3
|
||||||
ProfilePhase4Duration = 49, // Target duration for phase 4
|
ProfilePhase4Temp = 49, // Temperature to target for the end of phase 4
|
||||||
ProfilePhase5Temp = 50, // Temperature to target for the end of phase 5
|
ProfilePhase4Duration = 50, // Target duration for phase 4
|
||||||
ProfilePhase5Duration = 51, // Target duration for phase 5
|
ProfilePhase5Temp = 51, // Temperature to target for the end of phase 5
|
||||||
ProfileCooldownSpeed = 52, // Maximum allowed cooldown speed in degrees per second
|
ProfilePhase5Duration = 52, // Target duration for phase 5
|
||||||
HallEffectSleepTime = 53, // Seconds (/5) timeout to sleep when hall effect over threshold
|
ProfileCooldownSpeed = 53, // Maximum allowed cooldown speed in degrees per second
|
||||||
SolderingTipType = 54, // Selecting the type of soldering tip fitted
|
HallEffectSleepTime = 54, // Seconds (/5) timeout to sleep when hall effect over threshold
|
||||||
|
SolderingTipType = 55, // Selecting the type of soldering tip fitted
|
||||||
//
|
//
|
||||||
SettingsOptionsLength = 55, // End marker
|
SettingsOptionsLength = 56, // End marker
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ enum class SettingsItemIndex : uint8_t {
|
|||||||
CooldownBlink,
|
CooldownBlink,
|
||||||
ScrollingSpeed,
|
ScrollingSpeed,
|
||||||
ReverseButtonTempChange,
|
ReverseButtonTempChange,
|
||||||
|
ReverseButtonNav,
|
||||||
AnimSpeed,
|
AnimSpeed,
|
||||||
AnimLoop,
|
AnimLoop,
|
||||||
Brightness,
|
Brightness,
|
||||||
|
|||||||
@@ -81,6 +81,8 @@ static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOp
|
|||||||
{MIN_CALIBRATION_OFFSET, 2500, 1, CALIBRATION_OFFSET}, // CalibrationOffset
|
{MIN_CALIBRATION_OFFSET, 2500, 1, CALIBRATION_OFFSET}, // CalibrationOffset
|
||||||
{ 0, MAX_POWER_LIMIT, POWER_LIMIT_STEPS, POWER_LIMIT}, // PowerLimit
|
{ 0, MAX_POWER_LIMIT, POWER_LIMIT_STEPS, POWER_LIMIT}, // PowerLimit
|
||||||
{ 0, 1, 1, REVERSE_BUTTON_TEMP_CHANGE}, // ReverseButtonTempChangeEnabled
|
{ 0, 1, 1, REVERSE_BUTTON_TEMP_CHANGE}, // ReverseButtonTempChangeEnabled
|
||||||
|
{ 0, 1, 1,
|
||||||
|
REVERSE_BUTTON_NAV}, // ReverseButtonNavEnabled
|
||||||
{ 5, TEMP_CHANGE_LONG_STEP_MAX, 5, TEMP_CHANGE_LONG_STEP}, // TempChangeLongStep
|
{ 5, TEMP_CHANGE_LONG_STEP_MAX, 5, TEMP_CHANGE_LONG_STEP}, // TempChangeLongStep
|
||||||
{ 1, TEMP_CHANGE_SHORT_STEP_MAX, 1, TEMP_CHANGE_SHORT_STEP}, // TempChangeShortStep
|
{ 1, TEMP_CHANGE_SHORT_STEP_MAX, 1, TEMP_CHANGE_SHORT_STEP}, // TempChangeShortStep
|
||||||
{ 0, 9, 1, 7}, // HallEffectSensitivity
|
{ 0, 9, 1, 7}, // HallEffectSensitivity
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ static void displayAdvancedSolderingScreens(void);
|
|||||||
static void displayAdvancedIDLEScreens(void);
|
static void displayAdvancedIDLEScreens(void);
|
||||||
static void displayScrollSpeed(void);
|
static void displayScrollSpeed(void);
|
||||||
static void displayReverseButtonTempChangeEnabled(void);
|
static void displayReverseButtonTempChangeEnabled(void);
|
||||||
|
static void displayReverseButtonNavEnabled(void);
|
||||||
static void displayPowerLimit(void);
|
static void displayPowerLimit(void);
|
||||||
|
|
||||||
#ifdef BLE_ENABLED
|
#ifdef BLE_ENABLED
|
||||||
@@ -395,6 +396,8 @@ const menuitem UIMenu[] = {
|
|||||||
{SETTINGS_DESC(SettingsItemIndex::ScrollingSpeed), nullptr, displayScrollSpeed, nullptr, SettingsOptions::DescriptionScrollSpeed, SettingsItemIndex::ScrollingSpeed, 7},
|
{SETTINGS_DESC(SettingsItemIndex::ScrollingSpeed), nullptr, displayScrollSpeed, nullptr, SettingsOptions::DescriptionScrollSpeed, SettingsItemIndex::ScrollingSpeed, 7},
|
||||||
/* Reverse Temp change buttons +/- */
|
/* Reverse Temp change buttons +/- */
|
||||||
{SETTINGS_DESC(SettingsItemIndex::ReverseButtonTempChange), nullptr, displayReverseButtonTempChangeEnabled, nullptr, SettingsOptions::ReverseButtonTempChangeEnabled, SettingsItemIndex::ReverseButtonTempChange, 7},
|
{SETTINGS_DESC(SettingsItemIndex::ReverseButtonTempChange), nullptr, displayReverseButtonTempChangeEnabled, nullptr, SettingsOptions::ReverseButtonTempChangeEnabled, SettingsItemIndex::ReverseButtonTempChange, 7},
|
||||||
|
/* Reverse menu nav buttons A/B */
|
||||||
|
{SETTINGS_DESC(SettingsItemIndex::ReverseButtonNav), nullptr, displayReverseButtonNavEnabled, nullptr, SettingsOptions::ReverseButtonNavEnabled, SettingsItemIndex::ReverseButtonNav, 7},
|
||||||
/* Animation Speed adjustment */
|
/* Animation Speed adjustment */
|
||||||
{SETTINGS_DESC(SettingsItemIndex::AnimSpeed), nullptr, displayAnimationSpeed, nullptr, SettingsOptions::AnimationSpeed, SettingsItemIndex::AnimSpeed, 7},
|
{SETTINGS_DESC(SettingsItemIndex::AnimSpeed), nullptr, displayAnimationSpeed, nullptr, SettingsOptions::AnimationSpeed, SettingsItemIndex::AnimSpeed, 7},
|
||||||
/* Animation Loop switch */
|
/* Animation Loop switch */
|
||||||
@@ -480,7 +483,7 @@ static int userConfirmation(const char *message) {
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
drawScrollingText(message, xTaskGetTickCount() - tickStart);
|
drawScrollingText(message, xTaskGetTickCount() - tickStart);
|
||||||
|
|
||||||
ButtonState buttons = getButtonState();
|
ButtonState buttons = getButtonState(getSettingValue(SettingsOptions::ReverseButtonTempChangeEnabled));
|
||||||
switch (buttons) {
|
switch (buttons) {
|
||||||
case BUTTON_F_SHORT:
|
case BUTTON_F_SHORT:
|
||||||
// User confirmed
|
// User confirmed
|
||||||
@@ -856,6 +859,7 @@ static void displayCoolingBlinkEnabled(void) { OLED::drawCheckbox(getSettingValu
|
|||||||
static void displayScrollSpeed(void) { OLED::print(translatedString((getSettingValue(SettingsOptions::DescriptionScrollSpeed)) ? Tr->SettingFastChar : Tr->SettingSlowChar), FontStyle::LARGE); }
|
static void displayScrollSpeed(void) { OLED::print(translatedString((getSettingValue(SettingsOptions::DescriptionScrollSpeed)) ? Tr->SettingFastChar : Tr->SettingSlowChar), FontStyle::LARGE); }
|
||||||
|
|
||||||
static void displayReverseButtonTempChangeEnabled(void) { OLED::drawCheckbox(getSettingValue(SettingsOptions::ReverseButtonTempChangeEnabled)); }
|
static void displayReverseButtonTempChangeEnabled(void) { OLED::drawCheckbox(getSettingValue(SettingsOptions::ReverseButtonTempChangeEnabled)); }
|
||||||
|
static void displayReverseButtonNavEnabled(void) { OLED::drawCheckbox(getSettingValue(SettingsOptions::ReverseButtonNavEnabled)); }
|
||||||
|
|
||||||
static void displayAnimationSpeed(void) {
|
static void displayAnimationSpeed(void) {
|
||||||
switch (getSettingValue(SettingsOptions::AnimationSpeed)) {
|
switch (getSettingValue(SettingsOptions::AnimationSpeed)) {
|
||||||
@@ -952,7 +956,7 @@ static void setCalibrateVIN(void) {
|
|||||||
OLED::setCursor(0, 8);
|
OLED::setCursor(0, 8);
|
||||||
OLED::printNumber(getSettingValue(SettingsOptions::VoltageDiv), 3, FontStyle::SMALL);
|
OLED::printNumber(getSettingValue(SettingsOptions::VoltageDiv), 3, FontStyle::SMALL);
|
||||||
|
|
||||||
switch (getButtonState()) {
|
switch (getButtonState(getSettingValue(SettingsOptions::ReverseButtonNavEnabled))) {
|
||||||
case BUTTON_F_SHORT:
|
case BUTTON_F_SHORT:
|
||||||
prevSettingValue(SettingsOptions::VoltageDiv);
|
prevSettingValue(SettingsOptions::VoltageDiv);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ OperatingMode handle_post_init_state();
|
|||||||
OperatingMode guiHandleDraw(void) {
|
OperatingMode guiHandleDraw(void) {
|
||||||
OLED::clearScreen(); // Clear ready for render pass
|
OLED::clearScreen(); // Clear ready for render pass
|
||||||
// Read button state
|
// Read button state
|
||||||
ButtonState buttons = getButtonState();
|
ButtonState buttons = getButtonState(getSettingValue(SettingsOptions::ReverseButtonNavEnabled));
|
||||||
// Enforce screen on if buttons pressed, movement, hot tip etc
|
// Enforce screen on if buttons pressed, movement, hot tip etc
|
||||||
if (buttons != BUTTON_NONE) {
|
if (buttons != BUTTON_NONE) {
|
||||||
OLED::setDisplayState(OLED::DisplayState::ON);
|
OLED::setDisplayState(OLED::DisplayState::ON);
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ OperatingMode gui_solderingTempAdjust(const ButtonState buttonIn, guiContext *cx
|
|||||||
(*autoRepeatAcceleration) = PRESS_ACCEL_INTERVAL_MAX - PRESS_ACCEL_INTERVAL_MIN;
|
(*autoRepeatAcceleration) = PRESS_ACCEL_INTERVAL_MAX - PRESS_ACCEL_INTERVAL_MIN;
|
||||||
}
|
}
|
||||||
// If buttons are flipped; flip the delta
|
// If buttons are flipped; flip the delta
|
||||||
if (getSettingValue(SettingsOptions::ReverseButtonTempChangeEnabled)) {
|
if (getSettingValue(SettingsOptions::ReverseButtonTempChangeEnabled) xor getSettingValue(SettingsOptions::ReverseButtonNavEnabled)) {
|
||||||
delta = -delta;
|
delta = -delta;
|
||||||
}
|
}
|
||||||
if (delta != 0) {
|
if (delta != 0) {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ bool shouldShutdown(void) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (getButtonState() == BUTTON_B_LONG) { // allow also if back button is pressed long
|
if (getButtonState(getSettingValue(SettingsOptions::ReverseButtonNavEnabled)) == BUTTON_B_LONG) { // allow also if back button is pressed long
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user