mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Merge branch 'dev' into discip-patch-1
This commit is contained in:
@@ -28,16 +28,16 @@
|
||||
"message": "!BLOCAT!"
|
||||
},
|
||||
"WarningThermalRunaway": {
|
||||
"message": "Încălzire\nEsuată"
|
||||
"message": "Încălzire\nEşuată"
|
||||
},
|
||||
"SettingsCalibrationWarning": {
|
||||
"message": "Înainte de repornire, asigurati-vă că vârful si mânerul sunt la temperatura camerei!"
|
||||
"message": "Înainte de repornire, asiguraţi-vă că vârful şi mânerul sunt la temperatura camerei!"
|
||||
},
|
||||
"CJCCalibrating": {
|
||||
"message": "calibrare\n"
|
||||
},
|
||||
"SettingsResetWarning": {
|
||||
"message": "Sigur doriti să restaurati la setările implicite?"
|
||||
"message": "Sigur doriţi să restauraţi la setările implicite?"
|
||||
},
|
||||
"UVLOWarningString": {
|
||||
"message": "DC SCĂZUT"
|
||||
@@ -94,18 +94,18 @@
|
||||
"description": ""
|
||||
},
|
||||
"UIMenu": {
|
||||
"displayText": "Interfată\nutilizator",
|
||||
"displayText": "Interfaţă\nutilizator",
|
||||
"description": ""
|
||||
},
|
||||
"AdvancedMenu": {
|
||||
"displayText": "Optiuni\navansate",
|
||||
"displayText": "Opţiuni\navansate",
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"menuOptions": {
|
||||
"DCInCutoff": {
|
||||
"displayText": "Sursa de\nalimentare",
|
||||
"description": "Sursa de alimentare. Setează tensiunea de întrerupere. (DC 10V) (S 3.3V per celulă, dezactivati limita de alimentare)"
|
||||
"description": "Sursa de alimentare. Setează tensiunea de întrerupere. (DC 10V) (S 3.3V per celulă, dezactivaţi limita de alimentare)"
|
||||
},
|
||||
"MinVolCell": {
|
||||
"displayText": "Voltaj\nminim",
|
||||
@@ -117,7 +117,7 @@
|
||||
},
|
||||
"PDNegTimeout": {
|
||||
"displayText": "PD\ntimeout",
|
||||
"description": "Timp limită de negociere pentru tranzactia PD, în pasi de 100ms, pentru compatibilitate cu alimentatoarele QC"
|
||||
"description": "Timp limită de negociere pentru tranzacţia PD, în paşi de 100ms, pentru compatibilitate cu alimentatoarele QC"
|
||||
},
|
||||
"BoostTemperature": {
|
||||
"displayText": "Modifică\ntemp. impuls",
|
||||
@@ -137,11 +137,11 @@
|
||||
},
|
||||
"LockingMode": {
|
||||
"displayText": "Blocare\nbutoane",
|
||||
"description": "Când lipiti, apăsati lung ambele butoane, pentru a le bloca (D=dezactivare | B=numai \"modul boost\" | F=blocare completă)"
|
||||
"description": "Când lipiţi, apăsaţi lung ambele butoane, pentru a le bloca (D=dezactivare | B=numai \"modul boost\" | F=blocare completă)"
|
||||
},
|
||||
"MotionSensitivity": {
|
||||
"displayText": "Sensibilitate\nla miscare",
|
||||
"description": "Sensibilitate senzor miscare (0=oprit | 1=putin sensibil | ... | 9=cel mai sensibil)"
|
||||
"description": "Sensibilitate senzor miscare (0=oprit | 1=puţin sensibil | ... | 9=cel mai sensibil)"
|
||||
},
|
||||
"SleepTemperature": {
|
||||
"displayText": "Temp\nrepaus",
|
||||
@@ -168,8 +168,8 @@
|
||||
"description": "R=dreptaci | L=stângaci | A=auto"
|
||||
},
|
||||
"CooldownBlink": {
|
||||
"displayText": "Clipeste\nla răcire",
|
||||
"description": "Clipette temperatura după oprirea încălzirii, în timp ce vârful este încă fierbinte"
|
||||
"displayText": "Clipeşte\nla răcire",
|
||||
"description": "Clipeşte temperatura după oprirea încălzirii, în timp ce vârful este încă fierbinte"
|
||||
},
|
||||
"ScrollingSpeed": {
|
||||
"displayText": "Viteză\nderulare",
|
||||
@@ -180,12 +180,12 @@
|
||||
"description": "Inversarea butoanelor de reglare a temperaturii"
|
||||
},
|
||||
"AnimSpeed": {
|
||||
"displayText": "Animatii\nviteză",
|
||||
"description": "Ritmul animatiilor pictogramei din meniu (O=oprit | Î=încet | M=mediu | R=rapid)"
|
||||
"displayText": "Animaţii\nviteză",
|
||||
"description": "Ritmul animaţiilor pictogramei din meniu (O=oprit | Î=încet | M=mediu | R=rapid)"
|
||||
},
|
||||
"AnimLoop": {
|
||||
"displayText": "Animatii\nbuclă",
|
||||
"description": "Animatii de pictograme în meniul principal"
|
||||
"displayText": "Animaţii\nbuclă",
|
||||
"description": "Animaţii de pictograme în meniul principal"
|
||||
},
|
||||
"Brightness": {
|
||||
"displayText": "Ecranului\nluminozitatea",
|
||||
@@ -197,15 +197,15 @@
|
||||
},
|
||||
"LOGOTime": {
|
||||
"displayText": "Durată\nlogo încărcare",
|
||||
"description": "Setati durată logo de pornire (s=secunde)"
|
||||
"description": "Setaţi durată logo de pornire (s=secunde)"
|
||||
},
|
||||
"AdvancedIdle": {
|
||||
"displayText": "Detalii,\necran inactiv",
|
||||
"description": "Afisati informatii detaliate într-un font mai mic pe ecranul de repaus"
|
||||
"description": "Afisaţi informaţii detaliate într-un font mai mic pe ecranul de repaus"
|
||||
},
|
||||
"AdvancedSoldering": {
|
||||
"displayText": "Detalii\necran lipire",
|
||||
"description": "Afisati informatii detaliate într-un font mai mic pe ecranul de lipire"
|
||||
"description": "Afisaţi informaţii detaliate într-un font mai mic pe ecranul de lipire"
|
||||
},
|
||||
"PowerLimit": {
|
||||
"displayText": "Putere\nlimită",
|
||||
@@ -213,15 +213,15 @@
|
||||
},
|
||||
"CalibrateCJC": {
|
||||
"displayText": "Calibrare CJC\nla următoarea pornire",
|
||||
"description": "La următorul vârf de pornire, compensarea jonctiunii reci va fi calibrată (nu este necesară dacă Delta T este < 5°C)"
|
||||
"description": "La următorul vârf de pornire, compensarea joncţiunii reci va fi calibrată (nu este necesară dacă Delta T este < 5°C)"
|
||||
},
|
||||
"VoltageCalibration": {
|
||||
"displayText": "Calibrare tens.\nde intrare?",
|
||||
"description": "Porniti calibrarea VIN (apăsati lung pentru a iesi)"
|
||||
"description": "Porniţi calibrarea VIN (apăsaţi lung pentru a ieşi)"
|
||||
},
|
||||
"PowerPulsePower": {
|
||||
"displayText": "Putere\npuls",
|
||||
"description": "Puterea pulsului de mentinere activă a blocului de alimentare (watt)"
|
||||
"description": "Puterea pulsului de menţinere activă a blocului de alimentare (watt)"
|
||||
},
|
||||
"PowerPulseWait": {
|
||||
"displayText": "Întârziere\npuls putere",
|
||||
@@ -229,11 +229,11 @@
|
||||
},
|
||||
"PowerPulseDuration": {
|
||||
"displayText": "Durată\npuls putere",
|
||||
"description": "Durata pulsului de mentinere (x 250ms)"
|
||||
"description": "Durata pulsului de menţinere (x 250ms)"
|
||||
},
|
||||
"SettingsReset": {
|
||||
"displayText": "Setări\ndin fabrică",
|
||||
"description": "Reveniti la setările din fabrică"
|
||||
"description": "Reveniţi la setările din fabrică"
|
||||
},
|
||||
"LanguageSwitch": {
|
||||
"displayText": "Limbă:\n RO Română",
|
||||
|
||||
@@ -60,6 +60,15 @@
|
||||
#define ORIENTATION_MODE 0 // 0: Right 1:Left 2:Automatic - Default right
|
||||
#define REVERSE_BUTTON_TEMP_CHANGE 0 // 0:Default 1:Reverse - Reverse the plus and minus button assigment for temperature change
|
||||
|
||||
/**
|
||||
* OLED Brightness
|
||||
*
|
||||
*/
|
||||
#define MIN_BRIGHTNESS 0 // Min OLED brightness selectable
|
||||
#define MAX_BRIGHTNESS 100 // Max OLED brightness selectable
|
||||
#define BRIGHTNESS_STEP 25 // OLED brightness increment
|
||||
#define DEFAULT_BRIGHTNESS 25 // default OLED brightness
|
||||
|
||||
/**
|
||||
* Temp change settings
|
||||
*/
|
||||
|
||||
@@ -59,6 +59,15 @@
|
||||
#define ORIENTATION_MODE 2 // 0: Right 1:Left 2:Automatic - Default Automatic
|
||||
#define REVERSE_BUTTON_TEMP_CHANGE 0 // 0:Default 1:Reverse - Reverse the plus and minus button assigment for temperature change
|
||||
|
||||
/**
|
||||
* OLED Brightness
|
||||
*
|
||||
*/
|
||||
#define MIN_BRIGHTNESS 0 // Min OLED brightness selectable
|
||||
#define MAX_BRIGHTNESS 100 // Max OLED brightness selectable
|
||||
#define BRIGHTNESS_STEP 25 // OLED brightness increment
|
||||
#define DEFAULT_BRIGHTNESS 25 // default OLED brightness
|
||||
|
||||
/**
|
||||
* Temp change settings
|
||||
*/
|
||||
|
||||
@@ -59,6 +59,15 @@
|
||||
#define ORIENTATION_MODE 2 // 0: Right 1:Left 2:Automatic - Default Automatic
|
||||
#define REVERSE_BUTTON_TEMP_CHANGE 0 // 0:Default 1:Reverse - Reverse the plus and minus button assigment for temperature change
|
||||
|
||||
/**
|
||||
* OLED Brightness
|
||||
*
|
||||
*/
|
||||
#define MIN_BRIGHTNESS 0 // Min OLED brightness selectable
|
||||
#define MAX_BRIGHTNESS 100 // Max OLED brightness selectable
|
||||
#define BRIGHTNESS_STEP 25 // OLED brightness increment
|
||||
#define DEFAULT_BRIGHTNESS 25 // default OLED brightness
|
||||
|
||||
/**
|
||||
* Temp change settings
|
||||
*/
|
||||
|
||||
@@ -59,6 +59,15 @@
|
||||
#define ORIENTATION_MODE 2 // 0: Right 1:Left 2:Automatic - Default Automatic
|
||||
#define REVERSE_BUTTON_TEMP_CHANGE 0 // 0:Default 1:Reverse - Reverse the plus and minus button assigment for temperature change
|
||||
|
||||
/**
|
||||
* OLED Brightness
|
||||
*
|
||||
*/
|
||||
#define MIN_BRIGHTNESS 1 // Min OLED brightness selectable
|
||||
#define MAX_BRIGHTNESS 101 // Max OLED brightness selectable
|
||||
#define BRIGHTNESS_STEP 25 // OLED brightness increment
|
||||
#define DEFAULT_BRIGHTNESS 26 // default OLED brightness
|
||||
|
||||
/**
|
||||
* Temp change settings
|
||||
*/
|
||||
|
||||
@@ -49,45 +49,45 @@ typedef struct {
|
||||
|
||||
static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOptionsLength] = {
|
||||
//{min,max,increment,default}
|
||||
{MIN_TEMP_C, MAX_TEMP_F, 5, 320}, // SolderingTemp
|
||||
{MIN_TEMP_C, MAX_TEMP_F, 5, 150}, // SleepTemp
|
||||
{0, 15, 1, SLEEP_TIME}, // SleepTime
|
||||
{0, 4, 1, CUT_OUT_SETTING}, // MinDCVoltageCells
|
||||
{24, 38, 1, RECOM_VOL_CELL}, // MinVoltageCells
|
||||
{90, QC_VOLTAGE_MAX, 2, 90}, // QCIdealVoltage
|
||||
{0, 2, 1, ORIENTATION_MODE}, // OrientationMode
|
||||
{0, 9, 1, SENSITIVITY}, // Sensitivity
|
||||
{0, 1, 1, ANIMATION_LOOP}, // AnimationLoop
|
||||
{0, settingOffSpeed_t::MAX_VALUE - 1, 1, ANIMATION_SPEED}, // AnimationSpeed
|
||||
{0, 3, 1, AUTO_START_MODE}, // AutoStartMode
|
||||
{0, 60, 1, SHUTDOWN_TIME}, // ShutdownTime
|
||||
{0, 1, 1, COOLING_TEMP_BLINK}, // CoolingTempBlink
|
||||
{0, 1, 1, DETAILED_IDLE}, // DetailedIDLE
|
||||
{0, 1, 1, DETAILED_SOLDERING}, // DetailedSoldering
|
||||
{0, 1, 1, TEMPERATURE_INF}, // TemperatureInF
|
||||
{0, 1, 1, DESCRIPTION_SCROLL_SPEED}, // DescriptionScrollSpeed
|
||||
{0, 2, 1, LOCKING_MODE}, // LockingMode
|
||||
{0, 99, 1, POWER_PULSE_DEFAULT}, // KeepAwakePulse
|
||||
{1, POWER_PULSE_WAIT_MAX, 1, POWER_PULSE_WAIT_DEFAULT}, // KeepAwakePulseWait
|
||||
{1, POWER_PULSE_DURATION_MAX, 1, POWER_PULSE_DURATION_DEFAULT}, // KeepAwakePulseDuration
|
||||
{360, 900, 1, VOLTAGE_DIV}, // VoltageDiv
|
||||
{0, MAX_TEMP_F, 10, BOOST_TEMP}, // BoostTemp
|
||||
{MIN_CALIBRATION_OFFSET, 2500, 1, CALIBRATION_OFFSET}, // CalibrationOffset
|
||||
{0, MAX_POWER_LIMIT, POWER_LIMIT_STEPS, POWER_LIMIT}, // PowerLimit
|
||||
{0, 1, 1, REVERSE_BUTTON_TEMP_CHANGE}, // ReverseButtonTempChangeEnabled
|
||||
{5, TEMP_CHANGE_LONG_STEP_MAX, 5, TEMP_CHANGE_LONG_STEP}, // TempChangeLongStep
|
||||
{1, TEMP_CHANGE_SHORT_STEP_MAX, 1, TEMP_CHANGE_SHORT_STEP}, // TempChangeShortStep
|
||||
{0, 9, 1, 7}, // HallEffectSensitivity
|
||||
{0, 9, 1, 0}, // AccelMissingWarningCounter
|
||||
{0, 9, 1, 0}, // PDMissingWarningCounter
|
||||
{0, 0xFFFF, 0, 41431 /*EN*/}, // UILanguage
|
||||
{0, 50, 1, 20}, // PDNegTimeout
|
||||
{0, 1, 1, 0}, // OLEDInversion
|
||||
{0, 99, 11, 33}, // OLEDBrightness
|
||||
{0, 5, 1, 1}, // LOGOTime
|
||||
{0, 1, 1, 0}, // CalibrateCJC
|
||||
{0, 1, 1, 1}, // BLEEnabled
|
||||
{0, 1, 1, 1}, // PDVpdoEnabled
|
||||
{MIN_TEMP_C, MAX_TEMP_F, 5, 320}, // SolderingTemp
|
||||
{MIN_TEMP_C, MAX_TEMP_F, 5, 150}, // SleepTemp
|
||||
{0, 15, 1, SLEEP_TIME}, // SleepTime
|
||||
{0, 4, 1, CUT_OUT_SETTING}, // MinDCVoltageCells
|
||||
{24, 38, 1, RECOM_VOL_CELL}, // MinVoltageCells
|
||||
{90, QC_VOLTAGE_MAX, 2, 90}, // QCIdealVoltage
|
||||
{0, 2, 1, ORIENTATION_MODE}, // OrientationMode
|
||||
{0, 9, 1, SENSITIVITY}, // Sensitivity
|
||||
{0, 1, 1, ANIMATION_LOOP}, // AnimationLoop
|
||||
{0, settingOffSpeed_t::MAX_VALUE - 1, 1, ANIMATION_SPEED}, // AnimationSpeed
|
||||
{0, 3, 1, AUTO_START_MODE}, // AutoStartMode
|
||||
{0, 60, 1, SHUTDOWN_TIME}, // ShutdownTime
|
||||
{0, 1, 1, COOLING_TEMP_BLINK}, // CoolingTempBlink
|
||||
{0, 1, 1, DETAILED_IDLE}, // DetailedIDLE
|
||||
{0, 1, 1, DETAILED_SOLDERING}, // DetailedSoldering
|
||||
{0, 1, 1, TEMPERATURE_INF}, // TemperatureInF
|
||||
{0, 1, 1, DESCRIPTION_SCROLL_SPEED}, // DescriptionScrollSpeed
|
||||
{0, 2, 1, LOCKING_MODE}, // LockingMode
|
||||
{0, 99, 1, POWER_PULSE_DEFAULT}, // KeepAwakePulse
|
||||
{1, POWER_PULSE_WAIT_MAX, 1, POWER_PULSE_WAIT_DEFAULT}, // KeepAwakePulseWait
|
||||
{1, POWER_PULSE_DURATION_MAX, 1, POWER_PULSE_DURATION_DEFAULT}, // KeepAwakePulseDuration
|
||||
{360, 900, 1, VOLTAGE_DIV}, // VoltageDiv
|
||||
{0, MAX_TEMP_F, 10, BOOST_TEMP}, // BoostTemp
|
||||
{MIN_CALIBRATION_OFFSET, 2500, 1, CALIBRATION_OFFSET}, // CalibrationOffset
|
||||
{0, MAX_POWER_LIMIT, POWER_LIMIT_STEPS, POWER_LIMIT}, // PowerLimit
|
||||
{0, 1, 1, REVERSE_BUTTON_TEMP_CHANGE}, // ReverseButtonTempChangeEnabled
|
||||
{5, TEMP_CHANGE_LONG_STEP_MAX, 5, TEMP_CHANGE_LONG_STEP}, // TempChangeLongStep
|
||||
{1, TEMP_CHANGE_SHORT_STEP_MAX, 1, TEMP_CHANGE_SHORT_STEP}, // TempChangeShortStep
|
||||
{0, 9, 1, 7}, // HallEffectSensitivity
|
||||
{0, 9, 1, 0}, // AccelMissingWarningCounter
|
||||
{0, 9, 1, 0}, // PDMissingWarningCounter
|
||||
{0, 0xFFFF, 0, 41431 /*EN*/}, // UILanguage
|
||||
{0, 50, 1, 20}, // PDNegTimeout
|
||||
{0, 1, 1, 0}, // OLEDInversion
|
||||
{MIN_BRIGHTNESS, MAX_BRIGHTNESS, BRIGHTNESS_STEP, DEFAULT_BRIGHTNESS}, // OLEDBrightness
|
||||
{0, 5, 1, 1}, // LOGOTime
|
||||
{0, 1, 1, 0}, // CalibrateCJC
|
||||
{0, 1, 1, 1}, // BLEEnabled
|
||||
{0, 1, 1, 1}, // PDVpdoEnabled
|
||||
};
|
||||
static_assert((sizeof(settingsConstants) / sizeof(SettingConstants)) == ((int)SettingsOptions::SettingsOptionsLength));
|
||||
|
||||
|
||||
@@ -616,7 +616,7 @@ static void displayAnimationLoop(void) { OLED::drawCheckbox(getSettingValue(Sett
|
||||
|
||||
static void displayBrightnessLevel(void) {
|
||||
|
||||
OLED::printNumber((getSettingValue(SettingsOptions::OLEDBrightness) / 11 + 1), 2, FontStyle::LARGE);
|
||||
OLED::printNumber((getSettingValue(SettingsOptions::OLEDBrightness) / BRIGHTNESS_STEP + 1), 2, FontStyle::LARGE);
|
||||
// While not optimal to apply this here, it is _very_ convienient
|
||||
OLED::setBrightness(getSettingValue(SettingsOptions::OLEDBrightness));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user