1
0
forked from me/IronOS

manually merge in dual line settings

This commit is contained in:
Ben V. Brown
2017-12-12 12:25:26 +11:00
parent 5b4ed06013
commit 3c2e8765f2
7 changed files with 753 additions and 349 deletions

View File

@@ -32,7 +32,8 @@ public:
void setRotation(bool leftHanded); // Set the rotation for the screen void setRotation(bool leftHanded); // Set the rotation for the screen
bool getRotation(); // Get the current rotation of the LCD bool getRotation(); // Get the current rotation of the LCD
void print(const char* string); // Draw a string to the current location, with current font void print(const char* string); // Draw a string to the current location, with current font
void setCursor(int16_t x, int16_t y); // Set the cursor location void setCursor(int16_t x, int16_t y); // Set the cursor location by pixels
void setCharCursor(int16_t x, int16_t y); //Set cursor location by chars in current font
void setFont(uint8_t fontNumber);// (Future) Set the font that is being used void setFont(uint8_t fontNumber);// (Future) Set the font that is being used
void drawImage(const uint8_t* buffer, uint8_t x, uint8_t width); void drawImage(const uint8_t* buffer, uint8_t x, uint8_t width);
// Draws an image to the buffer, at x offset from top to bottom (fixed height renders) // Draws an image to the buffer, at x offset from top to bottom (fixed height renders)
@@ -41,7 +42,8 @@ public:
void clearScreen(); // Clears the buffer void clearScreen(); // Clears the buffer
void drawBattery(uint8_t state); // Draws the battery level symbol void drawBattery(uint8_t state); // Draws the battery level symbol
void drawSymbol(uint8_t symbolID);//Used for drawing symbols of a predictable width void drawSymbol(uint8_t symbolID);//Used for drawing symbols of a predictable width
void drawArea(int16_t x, int8_t y, uint8_t wide, uint8_t height, const uint8_t* ptr); void drawArea(int16_t x, int8_t y, uint8_t wide, uint8_t height,
const uint8_t* ptr);
private: private:
//Draw a buffer to the screen buffer //Draw a buffer to the screen buffer

View File

@@ -8,8 +8,18 @@
#ifndef TRANSLATION_H_ #ifndef TRANSLATION_H_
#define TRANSLATION_H_ #define TRANSLATION_H_
enum ShortNameType {
SHORT_NAME_SINGLE_LINE = 1,
SHORT_NAME_DOUBLE_LINE = 2,
};
/*
* When SettingsShortNameType is SHORT_NAME_SINGLE_LINE
* use SettingsShortNames as SettingsShortNames[16][1].. second column undefined
*/
extern const enum ShortNameType SettingsShortNameType;
extern const char* SettingsShortNames[16][2];
extern const char* SettingsLongNames[16]; extern const char* SettingsLongNames[16];
extern const char* SettingsShortNames[16];
extern const char* SettingsCalibrationWarning; extern const char* SettingsCalibrationWarning;
extern const char* UVLOWarningString; extern const char* UVLOWarningString;
extern const char* SleepingSimpleString; extern const char* SleepingSimpleString;
@@ -23,6 +33,7 @@ extern const char SettingRightChar;
extern const char SettingLeftChar; extern const char SettingLeftChar;
extern const char SettingAutoChar; extern const char SettingAutoChar;
#define LANG_EN #define LANG_EN
//#define LANG_RU //#define LANG_RU
//#define LANG_ES //#define LANG_ES

View File

@@ -104,10 +104,6 @@ void OLED::drawChar(char c, char PrecursorCommand) {
if (c < ' ') { if (c < ' ') {
return; return;
} }
//We are left with
uint8_t* charPointer;
uint16_t index = 0; uint16_t index = 0;
if (PrecursorCommand == 0) { if (PrecursorCommand == 0) {
//Fonts are offset to start at the space char //Fonts are offset to start at the space char
@@ -137,7 +133,7 @@ void OLED::drawChar(char c, char PrecursorCommand) {
return; return;
} }
} }
uint8_t* charPointer;
charPointer = ((uint8_t*) currentFont) charPointer = ((uint8_t*) currentFont)
+ ((fontWidth * (fontHeight / 8)) * index); + ((fontWidth * (fontHeight / 8)) * index);
@@ -197,7 +193,10 @@ void OLED::setCursor(int16_t x, int16_t y) {
cursor_x = x; cursor_x = x;
cursor_y = y; cursor_y = y;
} }
void OLED::setCharCursor(int16_t x, int16_t y) {
cursor_x = x * fontWidth;
cursor_y = y * fontHeight;
}
void OLED::setFont(uint8_t fontNumber) { void OLED::setFont(uint8_t fontNumber) {
if (fontNumber == 1) { if (fontNumber == 1) {
//small font //small font

View File

@@ -6,28 +6,69 @@
*/ */
#include "Translation.h" #include "Translation.h"
// TEMPLATES for short names - choose one and use it as base for your translation:
//const enum ShortNameType SettingsShortNameType = SHORT_NAME_SINGLE_LINE;
//const char* SettingsShortNames[16][2] = {
// /* (<= 5) Power source (DC or batt) */ {"PWRSC"},
// /* (<= 4) Sleep temperature */ {"STMP"},
// /* (<= 4) Sleep timeout */ {"STME"},
// /* (<= 5) Shutdown timeout */ {"SHTME"},
// /* (<= 6) Motion sensitivity level */ {"MSENSE"},
// /* (<= 6) Temperature in F and C */ {"TMPUNT"},
// /* (<= 6) Advanced idle display mode enabled */ {"ADVIDL"},
// /* (<= 6) Display rotation mode */ {"DSPROT"},
// /* (<= 6) Boost enabled */ {"BOOST"},
// /* (<= 4) Boost temperature */ {"BTMP"},
// /* (<= 6) Automatic start mode */ {"ASTART"},
// /* (<= 6) Cooldown blink */ {"CLBLNK"},
// /* (<= 8) Temperature calibration enter menu */ {"TMP CAL?"},
// /* (<= 8) Settings reset command */ {"RESET?"},
// /* (<= 8) Calibrate input voltage */ {"CAL VIN?"},
// /* (<= 6) Advanced soldering screen enabled */ {"ADVSLD"},
//};
//const enum ShortNameType SettingsShortNameType = SHORT_NAME_DOUBLE_LINE;
//const char* SettingsShortNames[16][2] = {
// /* (<= 11) Power source (DC or batt) */ {"Power", "source"},
// /* (<= 9) Sleep temperature */ {"Sleep", "temp"},
// /* (<= 9) Sleep timeout */ {"Sleep", "timeout"},
// /* (<= 11) Shutdown timeout */ {"Shutdown", "timeout"},
// /* (<= 13) Motion sensitivity level */ {"Motion", "sensitivity"},
// /* (<= 13) Temperature in F and C */ {"Temperature", "units"},
// /* (<= 13) Advanced idle display mode enabled */ {"Detailed", "idle screen"},
// /* (<= 13) Display rotation mode */ {"Display", "orientation"},
// /* (<= 13) Boost enabled */ {"Boost mode", "enabled"},
// /* (<= 9) Boost temperature */ {"Boost", "temp"},
// /* (<= 13) Automatic start mode */ {"Auto", "start"},
// /* (<= 13) Cooldown blink */ {"Cooldown", "blink"},
// /* (<= 16) Temperature calibration enter menu */ {"Calibrate", "temperature?"},
// /* (<= 16) Settings reset command */ {"Factory", "Reset?"},
// /* (<= 16) Calibrate input voltage */ {"Calibrate", "input voltage?"},
// /* (<= 13) Advanced soldering screen enabled */ {"Detailed", "solder screen"},
//};
#ifdef LANG_EN #ifdef LANG_EN
const char* SettingsLongNames[16] = const char* SettingsLongNames[16] =
{ {
/*These are all the help text for all the settings.*/ // These are all the help text for all the settings.
/*No requirements on spacing or length*/ // No requirements on spacing or length.
"Power source. Sets cutoff voltage. <DC 10V> <S 3.3V per cell>", //Power Source /* Power source (DC or batt) */"Power source. Sets cutoff voltage. <DC 10V> <S 3.3V per cell>",
"Sleep Temperature <C>", //Sleep Temp /* Sleep temperature */"Sleep Temperature <C>",
"Sleep Timeout <Minutes/Seconds>", //Sleep Timeout /* Sleep timeout */"Sleep Timeout <Minutes/Seconds>",
"Shutdown Timeout <Minutes>", //Shutdown Time /* Shutdown timeout */"Shutdown Timeout <Minutes>",
"Motion Sensitivity <0.Off 1.least sensitive 9.most sensitive>", //Motion Sensitivity /* Motion sensitivity level */"Motion Sensitivity <0.Off 1.least sensitive 9.most sensitive>",
"Temperature Unit <C=Celsius F=Fahrenheit>", //Temp Unit /* Temperature in F and C */"Temperature Unit <C=Celsius F=Fahrenheit>",
"Display detailed information in a smaller font on the idle screen.", //Detailed Information /* Advanced idle display mode enabled */"Display detailed information in a smaller font on the idle screen.",
"Display Orientation <A. Automatic L. Left Handed R. Right Handed>", //Orientation /* Display rotation mode */"Display Orientation <A. Automatic L. Left Handed R. Right Handed>",
"Enable front key enters boost mode 450C mode when soldering", //Boost enable /* Boost enabled */"Enable front key enters boost mode 450C mode when soldering",
"Temperature when in \"boost\" mode", //Boost Temp /* Boost temperature */"Temperature when in \"boost\" mode",
"Automatically starts the iron into soldering on power up. T=Soldering, S= Sleep mode,F=Off", //Auto start /* Automatic start mode */"Automatically starts the iron into soldering on power up. T=Soldering, S= Sleep mode,F=Off",
"Blink the temperature on the cooling screen while the tip is still hot.", //Cooling Blink /* Cooldown blink */"Blink the temperature on the cooling screen while the tip is still hot.",
"Calibrate tip offset.", //Calibrate Tip /* Temperature calibration enter menu */"Calibrate tip offset.",
"Reset all settings", //Reset Settings /* Settings reset command */"Reset all settings",
"VIN Calibration. Buttons adjust, long press to exit", //VIN Cal /* Calibrate input voltage */"VIN Calibration. Buttons adjust, long press to exit",
"Display detailed information while soldering", //ADV SLD /* Advanced soldering screen enabled */"Display detailed information while soldering", };
};
const char* SettingsCalibrationWarning = const char* SettingsCalibrationWarning =
"Please ensure the tip is at room temperature before continuing!"; "Please ensure the tip is at room temperature before continuing!";
@@ -42,27 +83,49 @@ const char SettingFalseChar = 'F';
const char SettingRightChar = 'R'; const char SettingRightChar = 'R';
const char SettingLeftChar = 'L'; const char SettingLeftChar = 'L';
const char SettingAutoChar = 'A'; const char SettingAutoChar = 'A';
const enum ShortNameType SettingsShortNameType = SHORT_NAME_DOUBLE_LINE;
const char* SettingsShortNames[16][2] = {
/* (<= 11) Power source (DC or batt) */{ "Power", "source" },
/* (<= 9) Sleep temperature */{ "Sleep", "temp" },
/* (<= 9) Sleep timeout */{ "Sleep", "timeout" },
/* (<= 11) Shutdown timeout */{ "Shutdown", "timeout" },
/* (<= 13) Motion sensitivity level */{ "Motion", "sensitivity" },
/* (<= 13) Temperature in F and C */{ "Temperature", "units" },
/* (<= 13) Advanced idle display mode enabled */{ "Detailed", "idle screen" },
/* (<= 13) Display rotation mode */{ "Display", "orientation" },
/* (<= 13) Boost enabled */{ "Boost mode", "enabled" },
/* (<= 9) Boost temperature */{ "Boost", "temp" },
/* (<= 13) Automatic start mode */{ "Auto", "start" },
/* (<= 13) Cooldown blink */{ "Cooldown", "blink" },
/* (<= 16) Temperature calibration enter menu */{ "Calibrate", "temperature?" },
/* (<= 16) Settings reset command */{ "Factory", "Reset?" },
/* (<= 16) Calibrate input voltage */{ "Calibrate",
"input voltage?" },
/* (<= 13) Advanced soldering screen enabled */{ "Detailed",
"solder screen" }, };
#endif #endif
#ifdef LANG_RU #ifdef LANG_RU
const char* SettingsLongNames[16] = { const char* SettingsLongNames[16] = {
/*These are all the help text for all the settings.*/ // These are all the help text for all the settings.
/*No requirements on spacing or length*/ // No requirements on spacing or length.
"Источник питания. Установка напряжения отключения. <DC 10V> <S 3.3 V на батарею>", //Cell count /* Power source (DC or batt) */"Источник питания. Установка напряжения отключения. <DC 10V> <S 3.3 V на батарею>",
"Температура Сна <С>",//Sleep Temp /* Sleep temperature */"Температура Сна <С>",
"Переход в режим Сна <Минуты>",//Sleep timeout /* Sleep timeout */"Переход в режим Сна <Минуты>",
"Переходит в режим ожидания <Минуты>",//Shutdown timeout /* Shutdown timeout */"Переходит в режим ожидания <Минуты>",
"Акселерометр <0. Выкл. 1. мин. чувствительный 9. макс. чувствительный>",//Sensitivity /* Motion sensitivity level */"Акселерометр <0. Выкл. 1. мин. чувствительный 9. макс. чувствительный>",
"В чем измерять температуру",//Temp Unit /* Temperature in F and C */"В чем измерять температуру",
"Display detailed information in a smaller font on the idle screen.",//Detailed Information /* Advanced idle display mode enabled */"Display detailed information in a smaller font on the idle screen.",
"Ориентация Дисплея <A. Автоматический L. Левая Рука R. Правая Рука>",//Orientation /* Display rotation mode */"Ориентация Дисплея <A. Автоматический L. Левая Рука R. Правая Рука>",
"Активация кнопки A для Турбо режима до 450С при пайке ",//Boost enable /* Boost enabled */"Активация кнопки A для Турбо режима до 450С при пайке ",
"Установка температуры для Турбо режима",//Boost temp /* Boost temperature */"Установка температуры для Турбо режима",
"Автоматический запуск паяльника при включении питания. T=Нагрев, S= Режим Сна,F=Выкл.",//Auto start /* Automatic start mode */"Автоматический запуск паяльника при включении питания. T=Нагрев, S= Режим Сна,F=Выкл.",
"Мигает температура на экране охлаждения, пока жало остается горячим."//Cooling blink /* Cooldown blink */"Мигает температура на экране охлаждения, пока жало остается горячим."
"Calibrate tip offset.",//Calibrate Tip /* Temperature calibration enter menu */"Calibrate tip offset.",
"Reset all settings",//Reset Settings /* Settings reset command */"Reset all settings",
"VIN Calibration. Buttons adjust, long press to exit",//VIN Cal /* Calibrate input voltage */"VIN Calibration. Buttons adjust, long press to exit",
"Display detailed information while soldering",//ADV SLD /* Advanced soldering screen enabled */"Display detailed information while soldering",
}; };
const char* SettingsCalibrationWarning = "Please ensure the tip is at room temperature before continuing!"; const char* SettingsCalibrationWarning = "Please ensure the tip is at room temperature before continuing!";
@@ -77,62 +140,48 @@ const char SettingFalseChar = 'F';
const char SettingRightChar = 'R'; const char SettingRightChar = 'R';
const char SettingLeftChar = 'L'; const char SettingLeftChar = 'L';
const char SettingAutoChar = 'A'; const char SettingAutoChar = 'A';
const enum ShortNameType SettingsShortNameType = SHORT_NAME_SINGLE_LINE;
const char* SettingsShortNames[16][2] = {
/* (<= 5) Power source (DC or batt) */{"PWRSC"},
/* (<= 4) Sleep temperature */{"STMP"},
/* (<= 4) Sleep timeout */{"STME"},
/* (<= 5) Shutdown timeout */{"SHTME"},
/* (<= 6) Motion sensitivity level */{"MSENSE"},
/* (<= 6) Temperature in F and C */{"TMPUNT"},
/* (<= 6) Advanced idle display mode enabled */{"ADVIDL"},
/* (<= 6) Display rotation mode */{"DSPROT"},
/* (<= 6) Boost enabled */{"BOOST"},
/* (<= 4) Boost temperature */{"BTMP"},
/* (<= 6) Automatic start mode */{"ASTART"},
/* (<= 6) Cooldown blink */{"CLBLNK"},
/* (<= 8) Temperature calibration enter menu */{"TMP CAL?"},
/* (<= 8) Settings reset command */{"RESET?"},
/* (<= 8) Calibrate input voltage */{"CAL VIN?"},
/* (<= 6) Advanced soldering screen enabled */{"ADVSLD"},
};
#endif #endif
#ifdef LANG_ES #ifdef LANG_ES
const char* SettingsLongNames[16] = { const char* SettingsLongNames[16] = {
/*These are all the help text for all the settings.*/ // These are all the help text for all the settings.
/*No requirements on spacing or length*/ // No requirements on spacing or length.
"Fuente de energía. Ajusta el límite inferior de voltaje. <DC=10V S=3.3V por celda>", /* Power source (DC or batt) */"Fuente de energía. Ajusta el límite inferior de voltaje. <DC=10V S=3.3V por celda>",
"Temperatura en reposo. <C>", /* Sleep temperature */"Temperatura en reposo. <C>",
"Tiempo hasta activar reposo. <Minutos>", /* Sleep timeout */"Tiempo hasta activar reposo. <Minutos>",
"Tiempo hasta apagado. <Minutos>", /* Shutdown timeout */"Tiempo hasta apagado. <Minutos>",
"Sensibilidad del movimiento. <0=Apagado 1=El menos sensible 9=El más sensible>", /* Motion sensitivity level */"Sensibilidad del movimiento. <0=Apagado 1=El menos sensible 9=El más sensible>",
"Unidad de temperatura.", /* Temperature in F and C */"Unidad de temperatura.",
"Mostrar información detallada en el reposo.", //Detailed Information /* Advanced idle display mode enabled */"Display detailed information in a smaller font on the idle screen.",
"Orientación de la pantalla <A=Automático I=Mano izquierda D=Mano derecha>", /* Display rotation mode */"Orientación de la pantalla <A=Automático I=Mano izquierda D=Mano derecha>",
"Activar el botón \"Boost\" en modo soldadura.", /* Boost enabled */"Activar el botón \"Boost\" en modo soldadura.",
"Temperatura en modo \"Boost\". <C>", /* Boost temperature */"Temperatura en modo \"Boost\". <C>",
"Iniciar modo soldadura en el encendido. <V=Sí S=Modo reposo F=No>", /* Automatic start mode */"Iniciar modo soldadura en el encendido. <V=Sí S=Modo reposo F=No>",
"Parpadea la temperatura en el enfriamiento si la punta sigue caliente." /* Cooldown blink */"Parpadea la temperatura en el enfriamiento si la punta sigue caliente."
"Calibrar punta.",//Calibrate Tip /* Temperature calibration enter menu */"Calibrate tip offset.",
"Resetear ajustes.",//Reset Settings /* Settings reset command */"Reset all settings",
"Calibración VIN. Los botones lo ajustan. Pulsación larga para salir.",//VIN Cal /* Calibrate input voltage */"VIN Calibration. Buttons adjust, long press to exit",
"Mostrar información detallada mientras suelda.",//ADV SLD /* Advanced soldering screen enabled */"Display detailed information while soldering",
};
const char* SettingsCalibrationWarning = "¡Por favor, asegúrese que la punta está a temperatura ambiente antes de continuar!";
const char* UVLOWarningString = "LOW VOLT"; //Fixed width 8 chars
const char* SleepingSimpleString = "Zzzz";// Must be <= 4 chars
const char* SleepingAdvancedString = "Sleeping...";// <=17 chars
const char* WarningSimpleString = "HOT!";//Must be <= 4 chars
const char* WarningAdvancedString = "WARNING! TIP HOT!";
const char SettingTrueChar = 'V';// True in Spanish is "Verdadero"
const char SettingFalseChar = 'F';
const char SettingRightChar = 'D';// Right is "Derecha"
const char SettingLeftChar = 'I';// Left is "Izquierda"
const char SettingAutoChar = 'A';
#endif
#ifdef LANG_SE
const char* SettingsLongNames[16] = {
/*These are all the help text for all the settings.*/
/*No requirements on spacing or length*/
"Источник питания. Установка напряжения отключения. <DC 10V> <S 3.3 V на батарею>", //Cell count
"Температура Сна <С>",//Sleep Temp
"Переход в режим Сна <Минуты>",//Sleep timeout
"Переходит в режим ожидания <Минуты>",//Shutdown timeout
"Акселерометр <0. Выкл. 1. мин. чувствительный 9. макс. чувствительный>",//Sensitivity
"В чем измерять температуру",//Temp Unit
"Display detailed information in a smaller font on the idle screen.",//Detailed Information
"Ориентация Дисплея <A. Автоматический L. Левая Рука R. Правая Рука>",//Orientation
"Активация кнопки A для Турбо режима до 450С при пайке ",//Boost enable
"Установка температуры для Турбо режима",//Boost temp
"Автоматический запуск паяльника при включении питания. T=Нагрев, S= Режим Сна,F=Выкл.",//Auto start
"Мигает температура на экране охлаждения, пока жало остается горячим."//Cooling blink
"Calibrate tip offset.",//Calibrate Tip
"Reset all settings",//Reset Settings
"VIN Calibration. Buttons adjust, long press to exit",//VIN Cal
"Display detailed information while soldering",//ADV SLD
}; };
const char* SettingsCalibrationWarning = "Please ensure the tip is at room temperature before continuing!"; const char* SettingsCalibrationWarning = "Please ensure the tip is at room temperature before continuing!";
@@ -147,27 +196,104 @@ const char SettingFalseChar = 'F';
const char SettingRightChar = 'R'; const char SettingRightChar = 'R';
const char SettingLeftChar = 'L'; const char SettingLeftChar = 'L';
const char SettingAutoChar = 'A'; const char SettingAutoChar = 'A';
const enum ShortNameType SettingsShortNameType = SHORT_NAME_SINGLE_LINE;
const char* SettingsShortNames[16][2] = {
/* (<= 5) Power source (DC or batt) */{"PWRSC"},
/* (<= 4) Sleep temperature */{"STMP"},
/* (<= 4) Sleep timeout */{"STME"},
/* (<= 5) Shutdown timeout */{"SHTME"},
/* (<= 6) Motion sensitivity level */{"MSENSE"},
/* (<= 6) Temperature in F and C */{"TMPUNT"},
/* (<= 6) Advanced idle display mode enabled */{"ADVIDL"},
/* (<= 6) Display rotation mode */{"DSPROT"},
/* (<= 6) Boost enabled */{"BOOST"},
/* (<= 4) Boost temperature */{"BTMP"},
/* (<= 6) Automatic start mode */{"ASTART"},
/* (<= 6) Cooldown blink */{"CLBLNK"},
/* (<= 8) Temperature calibration enter menu */{"TMP CAL?"},
/* (<= 8) Settings reset command */{"RESET?"},
/* (<= 8) Calibrate input voltage */{"CAL VIN?"},
/* (<= 6) Advanced soldering screen enabled */{"ADVSLD"},
};
#endif #endif
#ifdef LANG_SE
const char* SettingsLongNames[16] = {
// These are all the help text for all the settings.
// No requirements on spacing or length.
/* Power source (DC or batt) */"Источник питания. Установка напряжения отключения. <DC 10V> <S 3.3 V на батарею>",
/* Sleep temperature */"Температура Сна <С>",
/* Sleep timeout */"Переход в режим Сна <Минуты>",
/* Shutdown timeout */"Переходит в режим ожидания <Минуты>",
/* Motion sensitivity level */"Акселерометр <0. Выкл. 1. мин. чувствительный 9. макс. чувствительный>",
/* Temperature in F and C */"В чем измерять температуру",
/* Advanced idle display mode enabled */"Display detailed information in a smaller font on the idle screen.",
/* Display rotation mode */"Ориентация Дисплея <A. Автоматический L. Левая Рука R. Правая Рука>",
/* Boost enabled */"Активация кнопки A для Турбо режима до 450С при пайке ",
/* Boost temperature */"Установка температуры для Турбо режима",
/* Automatic start mode */"Автоматический запуск паяльника при включении питания. T=Нагрев, S= Режим Сна,F=Выкл.",
/* Cooldown blink */"Мигает температура на экране охлаждения, пока жало остается горячим."
/* Temperature calibration enter menu */"Calibrate tip offset.",
/* Settings reset command */"Reset all settings",
/* Calibrate input voltage */"VIN Calibration. Buttons adjust, long press to exit",
/* Advanced soldering screen enabled */"Display detailed information while soldering",
};
const char* SettingsCalibrationWarning = "Please ensure the tip is at room temperature before continuing!";
const char* UVLOWarningString = "LOW VOLT"; //Fixed width 8 chars
const char* SleepingSimpleString = "Zzzz";// Must be <= 4 chars
const char* SleepingAdvancedString = "Sleeping...";// <=17 chars
const char* WarningSimpleString = "HOT!";//Must be <= 4 chars
const char* WarningAdvancedString = "WARNING! TIP HOT!";
const char SettingTrueChar = 'T';
const char SettingFalseChar = 'F';
const char SettingRightChar = 'R';
const char SettingLeftChar = 'L';
const char SettingAutoChar = 'A';
const enum ShortNameType SettingsShortNameType = SHORT_NAME_SINGLE_LINE;
const char* SettingsShortNames[16][2] = {
/* (<= 5) Power source (DC or batt) */{"PWRSC"},
/* (<= 4) Sleep temperature */{"STMP"},
/* (<= 4) Sleep timeout */{"STME"},
/* (<= 5) Shutdown timeout */{"SHTME"},
/* (<= 6) Motion sensitivity level */{"MSENSE"},
/* (<= 6) Temperature in F and C */{"TMPUNT"},
/* (<= 6) Advanced idle display mode enabled */{"ADVIDL"},
/* (<= 6) Display rotation mode */{"DSPROT"},
/* (<= 6) Boost enabled */{"BOOST"},
/* (<= 4) Boost temperature */{"BTMP"},
/* (<= 6) Automatic start mode */{"ASTART"},
/* (<= 6) Cooldown blink */{"CLBLNK"},
/* (<= 8) Temperature calibration enter menu */{"TMP CAL?"},
/* (<= 8) Settings reset command */{"RESET?"},
/* (<= 8) Calibrate input voltage */{"CAL VIN?"},
/* (<= 6) Advanced soldering screen enabled */{"ADVSLD"},
};
#endif
#ifdef LANG_IT #ifdef LANG_IT
const char* SettingsLongNames[16] = { const char* SettingsLongNames[16] = {
/*These are all the help text for all the settings.*/ // These are all the help text for all the settings.
/*No requirements on spacing or length*/ // No requirements on spacing or length.
"Sorgente di alimentazione; imposta il limite minimo di tensione <DC: 10V; S: 3.3V per cella>", /* Power source (DC or batt) */"Sorgente di alimentazione; imposta il limite minimo di tensione <DC: 10V; S: 3.3V per cella>",
"Temperatura standby <°C>", /* Sleep temperature */"Temperatura standby <°C>",
"Timeout standby <minuti/secondi>", /* Sleep timeout */"Timeout standby <minuti/secondi>",
"Timeout spegnimento <minuti>", /* Shutdown timeout */"Timeout spegnimento <minuti>",
"Sensibilità al movimento <0: nessuna; 1: minima; 9: massima>", /* Motion sensitivity level */"Sensibilità al movimento <0: nessuna; 1: minima; 9: massima>",
"Unità di misura della temperatura <C: Celsius; F: Farenheit>", /* Temperature in F and C */"Unità di misura della temperatura <C: Celsius; F: Farenheit>",
"Mostra informazioni dettagliate con un carattere più piccolo sulla schermata di inattività", /* Advanced idle display mode enabled */"Mostra informazioni dettagliate con un carattere più piccolo sulla schermata di inattività",
"Orientamento del display <A: automatico; S: mano sinistra; D: mano destra>", /* Display rotation mode */"Orientamento del display <A: automatico; S: mano sinistra; D: mano destra>",
"Il tasto anteriore attiva la modalità \"boost\" durante la saldatura", /* Boost enabled */"Il tasto anteriore attiva la modalità \"boost\" durante la saldatura",
"Temperatura in modalità \"boost\"", /* Boost temperature */"Temperatura in modalità \"boost\"",
"Attiva automaticamente il saldatore quando viene alimentato <A: saldatura; S: standby; D: disattiva>", /* Automatic start mode */"Attiva automaticamente il saldatore quando viene alimentato <A: saldatura; S: standby; D: disattiva>",
"Durante il raffreddamento mostra la temperatura sul display se la punta è ancora calda" /* Cooldown blink */"Durante il raffreddamento mostra la temperatura sul display se la punta è ancora calda"
"Calibra l'offset della punta", //Calibrate Tip /* Temperature calibration enter menu */"Calibra l'offset della punta",
"Ripristina tutte le impostazioni",//Reset Settings /* Settings reset command */"Ripristina tutte le impostazioni",
"Calibra la tensione in entrata; regola con i bottoni, tieni permuto per uscire",//VIN Cal /* Calibrate input voltage */"Calibra la tensione in entrata; regola con i bottoni, tieni permuto per uscire",
"Mostra informazioni dettagliate mentre stai saldando",//ADV SLD /* Advanced soldering screen enabled */"Mostra informazioni dettagliate mentre stai saldando",
}; };
const char* SettingsCalibrationWarning = "Assicurati che la punta si trovi a temperatura ambiente prima di continuare!"; const char* SettingsCalibrationWarning = "Assicurati che la punta si trovi a temperatura ambiente prima di continuare!";
@@ -182,27 +308,48 @@ const char SettingFalseChar = 'D';
const char SettingRightChar = 'D'; const char SettingRightChar = 'D';
const char SettingLeftChar = 'S'; const char SettingLeftChar = 'S';
const char SettingAutoChar = 'A'; const char SettingAutoChar = 'A';
const enum ShortNameType SettingsShortNameType = SHORT_NAME_SINGLE_LINE;
const char* SettingsShortNames[16][2] = {
/* (<= 5) Power source (DC or batt) */{"PWRSC"},
/* (<= 4) Sleep temperature */{"STMP"},
/* (<= 4) Sleep timeout */{"STME"},
/* (<= 5) Shutdown timeout */{"SHTME"},
/* (<= 6) Motion sensitivity level */{"MSENSE"},
/* (<= 6) Temperature in F and C */{"TMPUNT"},
/* (<= 6) Advanced idle display mode enabled */{"ADVIDL"},
/* (<= 6) Display rotation mode */{"DSPROT"},
/* (<= 6) Boost enabled */{"BOOST"},
/* (<= 4) Boost temperature */{"BTMP"},
/* (<= 6) Automatic start mode */{"ASTART"},
/* (<= 6) Cooldown blink */{"CLBLNK"},
/* (<= 8) Temperature calibration enter menu */{"TMP CAL?"},
/* (<= 8) Settings reset command */{"RESET?"},
/* (<= 8) Calibrate input voltage */{"CAL VIN?"},
/* (<= 6) Advanced soldering screen enabled */{"ADVSLD"},
};
#endif #endif
#ifdef LANG_FR #ifdef LANG_FR
const char* SettingsLongNames[16] = { const char* SettingsLongNames[16] = {
/*These are all the help text for all the settings.*/ // These are all the help text for all the settings.
/*No requirements on spacing or length*/ // No requirements on spacing or length.
"Type d\'alimentation. Regle la tension de coupure. <DC=10V S=3.3V par cellules>", /* Power source (DC or batt) */"Type d\'alimentation. Regle la tension de coupure. <DC=10V S=3.3V par cellules>",
"Temperature en veille. <C>", /* Sleep temperature */"Temperature en veille. <C>",
"Temps avant mise en veille. <Minutes>", /* Sleep timeout */"Temps avant mise en veille. <Minutes>",
"Temps avant extinction. <Minutes>", /* Shutdown timeout */"Temps avant extinction. <Minutes>",
"Sensibilitee du capteur de mouvement. <0=Inactif 1=Peu sensible 9=Tres sensible>", /* Motion sensitivity level */"Sensibilitee du capteur de mouvement. <0=Inactif 1=Peu sensible 9=Tres sensible>",
"Unitee de temperature.", /* Temperature in F and C */"Unitee de temperature.",
"Afficher des informations detaillees en petit lors de la veille", //Detailed Information /* Advanced idle display mode enabled */"Afficher des informations detaillees en petit lors de la veille",
"Orientation de l\'affichage. <A=Automatique G=Gaucher D=Droitier>", /* Display rotation mode */"Orientation de l\'affichage. <A=Automatique G=Gaucher D=Droitier>",
"Active le mode \"Boost\" 450C sur le bouton de devant pendant la soudure.", /* Boost enabled */"Active le mode \"Boost\" 450C sur le bouton de devant pendant la soudure.",
"Temperature du mode \"Boost\". <C>", /* Boost temperature */"Temperature du mode \"Boost\". <C>",
"Demarre automatiquement la soudure a l\'allumage. <A=Active, V=Mode Veille, D=Desactive>", /* Automatic start mode */"Demarre automatiquement la soudure a l\'allumage. <A=Active, V=Mode Veille, D=Desactive>",
"Fait clignotter la temperature lors du refroidissement pendant que la panne est chaude." /* Cooldown blink */"Fait clignotter la temperature lors du refroidissement pendant que la panne est chaude."
"Compenser l\'erreur de la panne",//Calibrate Tip /* Temperature calibration enter menu */"Compenser l\'erreur de la panne",
"Reinitialiser tout les reglages",//Reset Settings /* Settings reset command */"Reinitialiser tout les reglages",
"Calibration VIN. Boutons pour ajuster, appui long pour quitter",//VIN Cal /* Calibrate input voltage */"Calibration VIN. Boutons pour ajuster, appui long pour quitter",
"Afficher des informations detaillees pendant la soudure",//ADV SLD /* Advanced soldering screen enabled */"Afficher des informations detaillees pendant la soudure",
}; };
const char* SettingsCalibrationWarning = "Please ensure the tip is at room temperature before continuing!"; const char* SettingsCalibrationWarning = "Please ensure the tip is at room temperature before continuing!";
@@ -217,27 +364,48 @@ const char SettingFalseChar = 'F';
const char SettingRightChar = 'R'; const char SettingRightChar = 'R';
const char SettingLeftChar = 'L'; const char SettingLeftChar = 'L';
const char SettingAutoChar = 'A'; const char SettingAutoChar = 'A';
const enum ShortNameType SettingsShortNameType = SHORT_NAME_SINGLE_LINE;
const char* SettingsShortNames[16][2] = {
/* (<= 5) Power source (DC or batt) */{"PWRSC"},
/* (<= 4) Sleep temperature */{"STMP"},
/* (<= 4) Sleep timeout */{"STME"},
/* (<= 5) Shutdown timeout */{"SHTME"},
/* (<= 6) Motion sensitivity level */{"MSENSE"},
/* (<= 6) Temperature in F and C */{"TMPUNT"},
/* (<= 6) Advanced idle display mode enabled */{"ADVIDL"},
/* (<= 6) Display rotation mode */{"DSPROT"},
/* (<= 6) Boost enabled */{"BOOST"},
/* (<= 4) Boost temperature */{"BTMP"},
/* (<= 6) Automatic start mode */{"ASTART"},
/* (<= 6) Cooldown blink */{"CLBLNK"},
/* (<= 8) Temperature calibration enter menu */{"TMP CAL?"},
/* (<= 8) Settings reset command */{"RESET?"},
/* (<= 8) Calibrate input voltage */{"CAL VIN?"},
/* (<= 6) Advanced soldering screen enabled */{"ADVSLD"},
};
#endif #endif
#ifdef LANG_DE #ifdef LANG_DE
const char* SettingsLongNames[16] = { const char* SettingsLongNames[16] = {
/*These are all the help text for all the settings.*/ // These are all the help text for all the settings.
/*No requirements on spacing or length*/ // No requirements on spacing or length.
"Spannungsquelle (Abschaltspannung) <DC=10V, nS=n*3.3V für n LiIon-Zellen>", /* Power source (DC or batt) */"Spannungsquelle (Abschaltspannung) <DC=10V, nS=n*3.3V für n LiIon-Zellen>",
"Ruhetemperatur (In der eingestellten Einheit)", /* Sleep temperature */"Ruhetemperatur (In der eingestellten Einheit)",
"Ruhemodus nach <Sekunden/Minuten>", /* Sleep timeout */"Ruhemodus nach <Sekunden/Minuten>",
"Abschaltzeit <Minuten>", /* Shutdown timeout */"Abschaltzeit <Minuten>",
"Bewegungsempfindlichkeit <0=Aus, 1=Minimal ... 9=Maximal>", /* Motion sensitivity level */"Bewegungsempfindlichkeit <0=Aus, 1=Minimal ... 9=Maximal>",
"Temperatureinheit <C=Celsius, F=Fahrenheit>", /* Temperature in F and C */"Temperatureinheit <C=Celsius, F=Fahrenheit>",
"Detaillierte Anzeige im Ruhemodus <T=An, F=Aus>", //Detailed Information /* Advanced idle display mode enabled */"Detaillierte Anzeige im Ruhemodus <T=An, F=Aus>",
"Ausrichtung der Anzeige <A=Auto, L=Linkshändig, R=Rechtshändig>", /* Display rotation mode */"Ausrichtung der Anzeige <A=Auto, L=Linkshändig, R=Rechtshändig>",
"Vordere Taste für Temperaturboost verwenden <T=An, F=Aus>", /* Boost enabled */"Vordere Taste für Temperaturboost verwenden <T=An, F=Aus>",
"Temperatur im Boostmodus (In der eingestellten Einheit)", /* Boost temperature */"Temperatur im Boostmodus (In der eingestellten Einheit)",
"Automatischer Start des Lötmodus beim Einschalten der Spannungsversorgung. <T=An, F=Aus>", /* Automatic start mode */"Automatischer Start des Lötmodus beim Einschalten der Spannungsversorgung. <T=An, F=Aus>",
"Blinkende Temperaturanzeige beim Abkühlen, solange heiß. <T=An, F=Aus>" /* Cooldown blink */"Blinkende Temperaturanzeige beim Abkühlen, solange heiß. <T=An, F=Aus>"
"Kalibrierung der Lötspitzentemperatur",//Calibrate Tip /* Temperature calibration enter menu */"Kalibrierung der Lötspitzentemperatur",
"Alle Einstellungen zurücksetzen",//Reset Settings /* Settings reset command */"Alle Einstellungen zurücksetzen",
"Kalibrierung der Eingangsspannung. Kurzer Tastendruck zum Einstellen, langer Tastendruck zum Verlassen.",//VIN Cal /* Calibrate input voltage */"Kalibrierung der Eingangsspannung. Kurzer Tastendruck zum Einstellen, langer Tastendruck zum Verlassen.",
"Detaillierte Anzeige im Lötmodus <T=An, F=Aus>",//ADV SLD /* Advanced soldering screen enabled */"Detaillierte Anzeige im Lötmodus <T=An, F=Aus>",
}; };
const char* SettingsCalibrationWarning = "Vor dem Fortfahren muss die Lötspitze vollständig abgekühlt sein!"; const char* SettingsCalibrationWarning = "Vor dem Fortfahren muss die Lötspitze vollständig abgekühlt sein!";
@@ -252,27 +420,48 @@ const char SettingFalseChar = 'F';
const char SettingRightChar = 'R'; const char SettingRightChar = 'R';
const char SettingLeftChar = 'L'; const char SettingLeftChar = 'L';
const char SettingAutoChar = 'A'; const char SettingAutoChar = 'A';
const enum ShortNameType SettingsShortNameType = SHORT_NAME_SINGLE_LINE;
const char* SettingsShortNames[16][2] = {
/* (<= 5) Power source (DC or batt) */{"PWRSC"},
/* (<= 4) Sleep temperature */{"STMP"},
/* (<= 4) Sleep timeout */{"STME"},
/* (<= 5) Shutdown timeout */{"SHTME"},
/* (<= 6) Motion sensitivity level */{"MSENSE"},
/* (<= 6) Temperature in F and C */{"TMPUNT"},
/* (<= 6) Advanced idle display mode enabled */{"ADVIDL"},
/* (<= 6) Display rotation mode */{"DSPROT"},
/* (<= 6) Boost enabled */{"BOOST"},
/* (<= 4) Boost temperature */{"BTMP"},
/* (<= 6) Automatic start mode */{"ASTART"},
/* (<= 6) Cooldown blink */{"CLBLNK"},
/* (<= 8) Temperature calibration enter menu */{"TMP CAL?"},
/* (<= 8) Settings reset command */{"RESET?"},
/* (<= 8) Calibrate input voltage */{"CAL VIN?"},
/* (<= 6) Advanced soldering screen enabled */{"ADVSLD"},
};
#endif #endif
#ifdef LANG_SK #ifdef LANG_SK
const char* SettingsLongNames[16] = { const char* SettingsLongNames[16] = {
/*These are all the help text for all the settings.*/ // These are all the help text for all the settings.
/*No requirements on spacing or length*/ // No requirements on spacing or length.
"Zdroj napatia. Nastavit napatie pre vypnutie (cutoff) <DC=10V, nS=n*3.3V pre LiIon clanky>", /* Power source (DC or batt) */"Zdroj napatia. Nastavit napatie pre vypnutie (cutoff) <DC=10V, nS=n*3.3V pre LiIon clanky>",
"Kludova teplota (v nastavenych jednotkach)", /* Sleep temperature */"Kludova teplota (v nastavenych jednotkach)",
"Kludovy rezim po <sekundach/minutach>", /* Sleep timeout */"Kludovy rezim po <sekundach/minutach>",
"Cas na vypnutie <minuty>", /* Shutdown timeout */"Cas na vypnutie <minuty>",
"Citlivost detekcie pohybu <0=Vyp, 1=Min ... 9=Max>", /* Motion sensitivity level */"Citlivost detekcie pohybu <0=Vyp, 1=Min ... 9=Max>",
"Jednotky merania teploty <C=stupne Celzia, F=stupne Fahrenheita>", /* Temperature in F and C */"Jednotky merania teploty <C=stupne Celzia, F=stupne Fahrenheita>",
"Zobrazit detailne informacie v kludovom rezime <T=Zap, F=Vyp>", //Detailed Information /* Advanced idle display mode enabled */"Zobrazit detailne informacie v kludovom rezime <T=Zap, F=Vyp>",
"Orientacia displeja <A=Auto, L=Lavak, R=Pravak>", /* Display rotation mode */"Orientacia displeja <A=Auto, L=Lavak, R=Pravak>",
"Povolit tlacidlo pre prudky nahrev <T=Zap, F=Vyp>", /* Boost enabled */"Povolit tlacidlo pre prudky nahrev <T=Zap, F=Vyp>",
"Cielova teplota pre prudky nahrev (v nastavenych jednotkach)", /* Boost temperature */"Cielova teplota pre prudky nahrev (v nastavenych jednotkach)",
"Pri starte spustit rezim spajkovania <T=Zap, F=Vyp, S=Spanok>", /* Automatic start mode */"Pri starte spustit rezim spajkovania <T=Zap, F=Vyp, S=Spanok>",
"Blikanie ukazovatela teploty pocas chladnutia hrotu <T=Zap, F=Vyp>" /* Cooldown blink */"Blikanie ukazovatela teploty pocas chladnutia hrotu <T=Zap, F=Vyp>"
"Kalibracia posunu hrotu",//Calibrate Tip /* Temperature calibration enter menu */"Kalibracia posunu hrotu",
"Tovarenske nastavenia",//Reset Settings /* Settings reset command */"Tovarenske nastavenia",
"Kalibracia VIN. Kratke stlacenie meni nastavenie, dlhe stlacenie pre navrat",//VIN Cal /* Calibrate input voltage */"Kalibracia VIN. Kratke stlacenie meni nastavenie, dlhe stlacenie pre navrat",
"Zobrazenie detailov pocas spajkovania <T=Zap, F=Vyp>",//ADV SLD /* Advanced soldering screen enabled */"Zobrazenie detailov pocas spajkovania <T=Zap, F=Vyp>",
}; };
const char* SettingsCalibrationWarning = "Najprv sa prosim uistite, ze hrot ma izbovu teplotu!"; const char* SettingsCalibrationWarning = "Najprv sa prosim uistite, ze hrot ma izbovu teplotu!";
@@ -287,27 +476,48 @@ const char SettingFalseChar = 'F';
const char SettingRightChar = 'R'; const char SettingRightChar = 'R';
const char SettingLeftChar = 'L'; const char SettingLeftChar = 'L';
const char SettingAutoChar = 'A'; const char SettingAutoChar = 'A';
const enum ShortNameType SettingsShortNameType = SHORT_NAME_SINGLE_LINE;
const char* SettingsShortNames[16][2] = {
/* (<= 5) Power source (DC or batt) */{"PWRSC"},
/* (<= 4) Sleep temperature */{"STMP"},
/* (<= 4) Sleep timeout */{"STME"},
/* (<= 5) Shutdown timeout */{"SHTME"},
/* (<= 6) Motion sensitivity level */{"MSENSE"},
/* (<= 6) Temperature in F and C */{"TMPUNT"},
/* (<= 6) Advanced idle display mode enabled */{"ADVIDL"},
/* (<= 6) Display rotation mode */{"DSPROT"},
/* (<= 6) Boost enabled */{"BOOST"},
/* (<= 4) Boost temperature */{"BTMP"},
/* (<= 6) Automatic start mode */{"ASTART"},
/* (<= 6) Cooldown blink */{"CLBLNK"},
/* (<= 8) Temperature calibration enter menu */{"TMP CAL?"},
/* (<= 8) Settings reset command */{"RESET?"},
/* (<= 8) Calibrate input voltage */{"CAL VIN?"},
/* (<= 6) Advanced soldering screen enabled */{"ADVSLD"},
};
#endif #endif
#ifdef LANG_TR #ifdef LANG_TR
const char* SettingsLongNames[16] = { const char* SettingsLongNames[16] = {
/*These are all the help text for all the settings.*/ // These are all the help text for all the settings.
/*No requirements on spacing or length*/ // No requirements on spacing or length.
"Güç Kaynağı. kesim geriliminı ayarlar. <DC 10V> <S 3.3V hücre başına>", //Power Source /* Power source (DC or batt) */"Güç Kaynağı. kesim geriliminı ayarlar. <DC 10V> <S 3.3V hücre başına>",
"Uyku Sıcaklığı <C>",//Sleep Temp /* Sleep temperature */"Uyku Sıcaklığı <C>",
"Uyku Zaman Aşımı <Dakika/Saniye>",//Sleep Timeout /* Sleep timeout */"Uyku Zaman Aşımı <Dakika/Saniye>",
"Kapatma Zaman Aşımı <Dakika>",//Shutdown Time /* Shutdown timeout */"Kapatma Zaman Aşımı <Dakika>",
"Hareket Hassasiyeti <0.Kapalı 1.En az duyarlı 9.En duyarlı>",//Motion Sensitivity /* Motion sensitivity level */"Hareket Hassasiyeti <0.Kapalı 1.En az duyarlı 9.En duyarlı>",
"Sıcaklık Ünitesi <C=Celsius F=Fahrenheit>",//Temp Unit /* Temperature in F and C */"Sıcaklık Ünitesi <C=Celsius F=Fahrenheit>",
"Boş ekranda ayrıntılı bilgileri daha küçük bir yazı tipi ile göster.",//Detailed Information /* Advanced idle display mode enabled */"Boş ekranda ayrıntılı bilgileri daha küçük bir yazı tipi ile göster.",
"Görüntü Yönlendirme <A. Otomatik L. Solak R. Sağlak>",//Orientation /* Display rotation mode */"Görüntü Yönlendirme <A. Otomatik L. Solak R. Sağlak>",
"Lehimleme yaparken ön tuşa basmak Boost moduna sokar(450C)",//Boost enable /* Boost enabled */"Lehimleme yaparken ön tuşa basmak Boost moduna sokar(450C)",
"\"boost\" Modu Derecesi",//Boost Temp /* Boost temperature */"\"boost\" Modu Derecesi",
"Güç verildiğinde otomatik olarak lehimleme modunda başlat. T=Lehimleme Modu, S= Uyku Modu,F=Kapalı",//Auto start /* Automatic start mode */"Güç verildiğinde otomatik olarak lehimleme modunda başlat. T=Lehimleme Modu, S= Uyku Modu,F=Kapalı",
"Soğutma ekranında uç hala sıcakken derece yanıp sönsün.",//Cooling Blink /* Cooldown blink */"Soğutma ekranında uç hala sıcakken derece yanıp sönsün.",
"Ucu kalibre et.",//Calibrate Tip /* Temperature calibration enter menu */"Ucu kalibre et.",
"Bütün ayarları sıfırla",//Reset Settings /* Settings reset command */"Bütün ayarları sıfırla",
"VIN Kalibrasyonu. Düğmeler ayarlar, çıkmak için uzun bas.",//VIN Cal /* Calibrate input voltage */"VIN Kalibrasyonu. Düğmeler ayarlar, çıkmak için uzun bas.",
"Lehimleme yaparken detaylı bilgi göster",//ADV SLD /* Advanced soldering screen enabled */"Lehimleme yaparken detaylı bilgi göster",
}; };
const char* SettingsCalibrationWarning = "Lütfen devam etmeden önce ucun oda sıcaklığında olduğunu garantiye alın!"; const char* SettingsCalibrationWarning = "Lütfen devam etmeden önce ucun oda sıcaklığında olduğunu garantiye alın!";
@@ -322,27 +532,48 @@ const char SettingFalseChar = 'F';
const char SettingRightChar = 'R'; const char SettingRightChar = 'R';
const char SettingLeftChar = 'L'; const char SettingLeftChar = 'L';
const char SettingAutoChar = 'A'; const char SettingAutoChar = 'A';
const enum ShortNameType SettingsShortNameType = SHORT_NAME_SINGLE_LINE;
const char* SettingsShortNames[16][2] = {
/* (<= 5) Power source (DC or batt) */{"PWRSC"},
/* (<= 4) Sleep temperature */{"STMP"},
/* (<= 4) Sleep timeout */{"STME"},
/* (<= 5) Shutdown timeout */{"SHTME"},
/* (<= 6) Motion sensitivity level */{"MSENSE"},
/* (<= 6) Temperature in F and C */{"TMPUNT"},
/* (<= 6) Advanced idle display mode enabled */{"ADVIDL"},
/* (<= 6) Display rotation mode */{"DSPROT"},
/* (<= 6) Boost enabled */{"BOOST"},
/* (<= 4) Boost temperature */{"BTMP"},
/* (<= 6) Automatic start mode */{"ASTART"},
/* (<= 6) Cooldown blink */{"CLBLNK"},
/* (<= 8) Temperature calibration enter menu */{"TMP CAL?"},
/* (<= 8) Settings reset command */{"RESET?"},
/* (<= 8) Calibrate input voltage */{"CAL VIN?"},
/* (<= 6) Advanced soldering screen enabled */{"ADVSLD"},
};
#endif #endif
#ifdef LANG_HR #ifdef LANG_HR
const char* SettingsLongNames[16] = { const char* SettingsLongNames[16] = {
/*These are all the help text for all the settings.*/ // These are all the help text for all the settings.
/*No requirements on spacing or length*/ // No requirements on spacing or length.
"Izvor napajanja. Postavlja napon iskljucivanja. <DC 10V> <S 3.3V po celiji>", //Power Source /* Power source (DC or batt) */"Izvor napajanja. Postavlja napon iskljucivanja. <DC 10V> <S 3.3V po celiji>",
"Temperatura spavanja. <C>",//Sleep Temp /* Sleep temperature */"Temperatura spavanja. <C>",
"Vrijeme spavanja. <Minute/Sekunde>",//Sleep Timeout /* Sleep timeout */"Vrijeme spavanja. <Minute/Sekunde>",
"Vrijeme gasenja. <Minutes>",//Shutdown Time /* Shutdown timeout */"Vrijeme gasenja. <Minutes>",
"Osjetljivost prepoznavanja pokreta. <0=Ugaseno, 1=Najmanje osjetljivo, 9=Najosjetljivije>",//Motion Sensitivity /* Motion sensitivity level */"Osjetljivost prepoznavanja pokreta. <0=Ugaseno, 1=Najmanje osjetljivo, 9=Najosjetljivije>",
"Jedinica temperature. <C=Celzij, F=Fahrenheit>",//Temp Unit /* Temperature in F and C */"Jedinica temperature. <C=Celzij, F=Fahrenheit>",
"Prikazivanje detaljnih informacija manjim fontom tijekom cekanja.",//Detailed Information /* Advanced idle display mode enabled */"Prikazivanje detaljnih informacija manjim fontom tijekom cekanja.",
"Orijentacija ekrana. <A=Automatski, L=Ljevoruki, D=Desnoruki>",//Orientation /* Display rotation mode */"Orijentacija ekrana. <A=Automatski, L=Ljevoruki, D=Desnoruki>",
"Prednji gumb prilikom lemljenja aktivira pojacani (Boost) nacin.",//Boost enable /* Boost enabled */"Prednji gumb prilikom lemljenja aktivira pojacani (Boost) nacin.",
"Temperatura u pojacanom (Boost) nacinu.",//Boost Temp /* Boost temperature */"Temperatura u pojacanom (Boost) nacinu.",
"Nacin u kojemu se lemilica pokrece po ukljucivanju napajanja. <+=Lemljenje, S=Spavanje, -=Ugaseno>",//Auto start /* Automatic start mode */"Nacin u kojemu se lemilica pokrece po ukljucivanju napajanja. <+=Lemljenje, S=Spavanje, -=Ugaseno>",
"Bljeskanje temperature prilikom hladjenja, ako je lemilica vruca.",//Cooling Blink /* Cooldown blink */"Bljeskanje temperature prilikom hladjenja, ako je lemilica vruca.",
"Kalibriranje temperature vrha.",//Calibrate Tip /* Temperature calibration enter menu */"Kalibriranje temperature vrha.",
"Vracanje svih postavki.",//Reset Settings /* Settings reset command */"Vracanje svih postavki.",
"Kalibracija ulaznog napona. Podesavanje gumbima, dugacki pritisak za kraj.",//VIN Cal /* Calibrate input voltage */"Kalibracija ulaznog napona. Podesavanje gumbima, dugacki pritisak za kraj.",
"Prikazivanje detaljnih informacija tijekom lemljenja.",//ADV SLD /* Advanced soldering screen enabled */"Prikazivanje detaljnih informacija tijekom lemljenja.",
}; };
const char* SettingsCalibrationWarning = "Provjerite da je vrh ohladjen na sobnu temperaturu prije nego sto nastavite!"; const char* SettingsCalibrationWarning = "Provjerite da je vrh ohladjen na sobnu temperaturu prije nego sto nastavite!";
@@ -357,6 +588,26 @@ const char SettingFalseChar = '-';
const char SettingRightChar = 'D'; const char SettingRightChar = 'D';
const char SettingLeftChar = 'L'; const char SettingLeftChar = 'L';
const char SettingAutoChar = 'A'; const char SettingAutoChar = 'A';
const enum ShortNameType SettingsShortNameType = SHORT_NAME_SINGLE_LINE;
const char* SettingsShortNames[16][2] = {
/* (<= 5) Power source (DC or batt) */{"PWRSC"},
/* (<= 4) Sleep temperature */{"STMP"},
/* (<= 4) Sleep timeout */{"STME"},
/* (<= 5) Shutdown timeout */{"SHTME"},
/* (<= 6) Motion sensitivity level */{"MSENSE"},
/* (<= 6) Temperature in F and C */{"TMPUNT"},
/* (<= 6) Advanced idle display mode enabled */{"ADVIDL"},
/* (<= 6) Display rotation mode */{"DSPROT"},
/* (<= 6) Boost enabled */{"BOOST"},
/* (<= 4) Boost temperature */{"BTMP"},
/* (<= 6) Automatic start mode */{"ASTART"},
/* (<= 6) Cooldown blink */{"CLBLNK"},
/* (<= 8) Temperature calibration enter menu */{"TMP CAL?"},
/* (<= 8) Settings reset command */{"RESET?"},
/* (<= 8) Calibrate input voltage */{"CAL VIN?"},
/* (<= 6) Advanced soldering screen enabled */{"ADVSLD"},
};
#endif #endif
#ifdef LANG_CS_CZ #ifdef LANG_CS_CZ
@@ -393,7 +644,28 @@ const char SettingFalseChar = 'V';
const char SettingRightChar = 'P'; const char SettingRightChar = 'P';
const char SettingLeftChar = 'L'; const char SettingLeftChar = 'L';
const char SettingAutoChar = 'A'; const char SettingAutoChar = 'A';
const enum ShortNameType SettingsShortNameType = SHORT_NAME_SINGLE_LINE;
const char* SettingsShortNames[16][2] = {
/* (<= 5) Power source (DC or batt) */{"PWRSC"},
/* (<= 4) Sleep temperature */{"STMP"},
/* (<= 4) Sleep timeout */{"STME"},
/* (<= 5) Shutdown timeout */{"SHTME"},
/* (<= 6) Motion sensitivity level */{"MSENSE"},
/* (<= 6) Temperature in F and C */{"TMPUNT"},
/* (<= 6) Advanced idle display mode enabled */{"ADVIDL"},
/* (<= 6) Display rotation mode */{"DSPROT"},
/* (<= 6) Boost enabled */{"BOOST"},
/* (<= 4) Boost temperature */{"BTMP"},
/* (<= 6) Automatic start mode */{"ASTART"},
/* (<= 6) Cooldown blink */{"CLBLNK"},
/* (<= 8) Temperature calibration enter menu */{"TMP CAL?"},
/* (<= 8) Settings reset command */{"RESET?"},
/* (<= 8) Calibrate input voltage */{"CAL VIN?"},
/* (<= 6) Advanced soldering screen enabled */{"ADVSLD"},
};
#endif #endif
#ifdef LANG_HUN #ifdef LANG_HUN
const char* SettingsLongNames[16] = { const char* SettingsLongNames[16] = {
/*These are all the help text for all the settings.*/ /*These are all the help text for all the settings.*/
@@ -428,28 +700,48 @@ const char SettingFalseChar = 'F';
const char SettingRightChar = 'R'; const char SettingRightChar = 'R';
const char SettingLeftChar = 'L'; const char SettingLeftChar = 'L';
const char SettingAutoChar = 'A'; const char SettingAutoChar = 'A';
const enum ShortNameType SettingsShortNameType = SHORT_NAME_SINGLE_LINE;
const char* SettingsShortNames[16][2] = {
/* (<= 5) Power source (DC or batt) */{"PWRSC"},
/* (<= 4) Sleep temperature */{"STMP"},
/* (<= 4) Sleep timeout */{"STME"},
/* (<= 5) Shutdown timeout */{"SHTME"},
/* (<= 6) Motion sensitivity level */{"MSENSE"},
/* (<= 6) Temperature in F and C */{"TMPUNT"},
/* (<= 6) Advanced idle display mode enabled */{"ADVIDL"},
/* (<= 6) Display rotation mode */{"DSPROT"},
/* (<= 6) Boost enabled */{"BOOST"},
/* (<= 4) Boost temperature */{"BTMP"},
/* (<= 6) Automatic start mode */{"ASTART"},
/* (<= 6) Cooldown blink */{"CLBLNK"},
/* (<= 8) Temperature calibration enter menu */{"TMP CAL?"},
/* (<= 8) Settings reset command */{"RESET?"},
/* (<= 8) Calibrate input voltage */{"CAL VIN?"},
/* (<= 6) Advanced soldering screen enabled */{"ADVSLD"},
};
#endif #endif
#ifdef LANG_TR #ifdef LANG_TR
const char* SettingsLongNames[16] = { const char* SettingsLongNames[16] = {
/*These are all the help text for all the settings.*/ /*These are all the help text for all the settings.*/
/*No requirements on spacing or length*/ /*No requirements on spacing or length*/
"Güç Kaynağı. kesim geriliminı ayarlar. <DC 10V> <S 3.3V hücre başına>", //Power Source /* Power source (DC or batt) */"Güç Kaynağı. kesim geriliminı ayarlar. <DC 10V> <S 3.3V hücre başına>", //Power Source
"Uyku Sıcaklığı <C>", //Sleep Temp /* Sleep temperature */"Uyku Sıcaklığı <C>",//Sleep Temp
"Uyku Zaman Aşımı <Dakika/Saniye>", //Sleep Timeout /* Sleep timeout */"Uyku Zaman Aşımı <Dakika/Saniye>",//Sleep Timeout
"Kapatma Zaman Aşımı <Dakika>", //Shutdown Time /* Shutdown timeout */"Kapatma Zaman Aşımı <Dakika>",//Shutdown Time
"Hareket Hassasiyeti <0.Kapalı 1.En az duyarlı 9.En duyarlı>", //Motion Sensitivity /* Motion sensitivity level */"Hareket Hassasiyeti <0.Kapalı 1.En az duyarlı 9.En duyarlı>",//Motion Sensitivity
"Sıcaklık Ünitesi <C=Celsius F=Fahrenheit>", //Temp Unit /* Temperature in F and C */"Sıcaklık Ünitesi <C=Celsius F=Fahrenheit>",//Temp Unit
"Boş ekranda ayrıntılı bilgileri daha küçük bir yazı tipi ile göster.", //Detailed Information /* Advanced idle display mode enabled */"Boş ekranda ayrıntılı bilgileri daha küçük bir yazı tipi ile göster.",//Detailed Information
"Görüntü Yönlendirme <A. Otomatik L. Solak R. Sağlak>", //Orientation /* Display rotation mode */"Görüntü Yönlendirme <A. Otomatik L. Solak R. Sağlak>",//Orientation
"Lehimleme yaparken ön tuşa basmak Boost moduna sokar(450C)", //Boost enable /* Boost enabled */"Lehimleme yaparken ön tuşa basmak Boost moduna sokar(450C)",//Boost enable
"\"boost\" Modu Derecesi", //Boost Temp /* Boost temperature */"\"boost\" Modu Derecesi",//Boost Temp
"Güç verildiğinde otomatik olarak lehimleme modunda başlat. T=Lehimleme Modu, S= Uyku Modu,F=Kapalı", //Auto start /* Automatic start mode */"Güç verildiğinde otomatik olarak lehimleme modunda başlat. T=Lehimleme Modu, S= Uyku Modu,F=Kapalı",//Auto start
"Soğutma ekranında uç hala sıcakken derece yanıp sönsün.", //Cooling Blink /* Cooldown blink */"Soğutma ekranında uç hala sıcakken derece yanıp sönsün.",//Cooling Blink
"Ucu kalibre et.", //Calibrate Tip /* Temperature calibration enter menu */"Ucu kalibre et.",//Calibrate Tip
"Bütün ayarları sıfırla", //Reset Settings /* Settings reset command */"Bütün ayarları sıfırla",//Reset Settings
"VIN Kalibrasyonu. Düğmeler ayarlar, çıkmak için uzun bas.", //VIN Cal /* Calibrate input voltage */"VIN Kalibrasyonu. Düğmeler ayarlar, çıkmak için uzun bas.",//VIN Cal
"Lehimleme yaparken detaylı bilgi göster", //ADV SLD /* Advanced soldering screen enabled */"Lehimleme yaparken detaylı bilgi göster",//ADV SLD
}; };
const char* SettingsCalibrationWarning = "Lütfen devam etmeden önce ucun oda sıcaklığında olduğunu garantiye alın!"; const char* SettingsCalibrationWarning = "Lütfen devam etmeden önce ucun oda sıcaklığında olduğunu garantiye alın!";
@@ -464,22 +756,25 @@ const char SettingFalseChar = 'F';
const char SettingRightChar = 'R'; const char SettingRightChar = 'R';
const char SettingLeftChar = 'L'; const char SettingLeftChar = 'L';
const char SettingAutoChar = 'A'; const char SettingAutoChar = 'A';
#endif
//Currently the settings names are not translated const enum ShortNameType SettingsShortNameType = SHORT_NAME_SINGLE_LINE;
const char* SettingsShortNames[16] = { /**/ const char* SettingsShortNames[16][2] = {
"PWRSC ", // Power Source (DC or batt) /* (<= 5) Power source (DC or batt) */{"PWRSC"},
"STMP ", // Sleep Temperature /* (<= 4) Sleep temperature */{"STMP"},
"STME ", // Sleep Timeout /* (<= 4) Sleep timeout */{"STME"},
"SHTME ", // Shutdown Temperature /* (<= 5) Shutdown timeout */{"SHTME"},
"MSENSE ", // Motion sensitivity level /* (<= 6) Motion sensitivity level */{"MSENSE"},
"TMPUNT ", //Temp in F and C /* (<= 6) Temperature in F and C */{"TMPUNT"},
"ADVIDL ", // Advanced idle display mode enable /* (<= 6) Advanced idle display mode enabled */{"ADVIDL"},
"DSPROT ", // Display rotation mode /* (<= 6) Display rotation mode */{"DSPROT"},
"BOOST ", // Boost enabled /* (<= 6) Boost enabled */{"BOOST"},
"BTMP ", // Boost temperature /* (<= 4) Boost temperature */{"BTMP"},
"ASTART ", // Automatic Start mode /* (<= 6) Automatic start mode */{"ASTART"},
"CLBLNK ", // Cooldown blink /* (<= 6) Cooldown blink */{"CLBLNK"},
"TMP CAL?", // Temperature calibration enter menu /* (<= 8) Temperature calibration enter menu */{"TMP CAL?"},
"RESET? ", // Settings reset command /* (<= 8) Settings reset command */{"RESET?"},
"CAL VIN?", "ADVSLD ", //advanced soldering screens /* (<= 8) Calibrate input voltage */{"CAL VIN?"},
/* (<= 6) Advanced soldering screen enabled */{"ADVSLD"},
}; };
#endif

View File

@@ -64,95 +64,159 @@ const menuitem settingsMenu[] = { /*Struct used for all settings options in the
{ NULL, { NULL }, { NULL } } //end of menu marker. DO NOT REMOVE { NULL, { NULL }, { NULL } } //end of menu marker. DO NOT REMOVE
}; };
static void printShortDescriptionSingleLine(uint32_t shortDescIndex) {
lcd.setFont(0);
lcd.setCharCursor(0, 0);
lcd.print(SettingsShortNames[shortDescIndex][0]);
}
static void printShortDescriptionDoubleLine(uint32_t shortDescIndex) {
lcd.setFont(1);
lcd.setCharCursor(0, 0);
lcd.print(SettingsShortNames[shortDescIndex][0]);
lcd.setCharCursor(0, 1);
lcd.print(SettingsShortNames[shortDescIndex][1]);
}
/**
* Prints two small lines of short description
* and prepares cursor in big font after it.
* @param shortDescIndex Index to of short description.
* @param cursorCharPosition Custom cursor char position to set after printing description.
*/
static void printShortDescription(uint32_t shortDescIndex, uint16_t cursorCharPosition) {
//print short description (default single line, explicit double line)
if(SettingsShortNameType == SHORT_NAME_DOUBLE_LINE) {
printShortDescriptionDoubleLine(shortDescIndex);
}
else {
printShortDescriptionSingleLine(shortDescIndex);
}
//prepare cursor for value
lcd.setFont(0);
lcd.setCharCursor(cursorCharPosition, 0);
}
static void settings_setInputVRange(void) { static void settings_setInputVRange(void) {
systemSettings.cutoutSetting = (systemSettings.cutoutSetting + 1) % 5; systemSettings.cutoutSetting = (systemSettings.cutoutSetting + 1) % 5;
} }
static void settings_displayInputVRange(void) { static void settings_displayInputVRange(void) {
lcd.print(SettingsShortNames[0]); printShortDescription(0, 6);
if (systemSettings.cutoutSetting) { if (systemSettings.cutoutSetting) {
lcd.drawChar('0' + 2 + systemSettings.cutoutSetting); lcd.drawChar('0' + 2 + systemSettings.cutoutSetting);
lcd.drawChar('S'); lcd.drawChar('S');
} else { }
else {
lcd.print("DC"); lcd.print("DC");
} }
} }
static void settings_setSleepTemp(void) { static void settings_setSleepTemp(void) {
systemSettings.SleepTemp += 10; systemSettings.SleepTemp += 10;
if (systemSettings.SleepTemp > 300) if (systemSettings.SleepTemp > 300)
systemSettings.SleepTemp = 50; systemSettings.SleepTemp = 50;
} }
static void settings_displaySleepTemp(void) { static void settings_displaySleepTemp(void) {
lcd.print(SettingsShortNames[1]); printShortDescription(1, 5);
lcd.printNumber(systemSettings.SleepTemp, 3); lcd.printNumber(systemSettings.SleepTemp, 3);
} }
static void settings_setSleepTime(void) { static void settings_setSleepTime(void) {
++systemSettings.SleepTime; //Go up 1 minute at a time systemSettings.SleepTime++; //Go up 1 minute at a time
if (systemSettings.SleepTime >= 16) if (systemSettings.SleepTime >= 16) {
systemSettings.SleepTime = 1; //can't set time over 10 mins systemSettings.SleepTime = 1; //can't set time over 10 mins
}
//Remember that ^ is the time of no movement //Remember that ^ is the time of no movement
} }
static void settings_displaySleepTime(void) { static void settings_displaySleepTime(void) {
lcd.print(SettingsShortNames[2]); printShortDescription(2, 5);
if (systemSettings.SleepTime < 6) { if (systemSettings.SleepTime < 6) {
lcd.printNumber(systemSettings.SleepTime * 10, 2); lcd.printNumber(systemSettings.SleepTime * 10, 2);
lcd.drawChar('S'); lcd.drawChar('S');
} else { }
else {
lcd.printNumber(systemSettings.SleepTime - 5, 2); lcd.printNumber(systemSettings.SleepTime - 5, 2);
lcd.drawChar('M'); lcd.drawChar('M');
} }
} }
static void settings_setShutdownTime(void) { static void settings_setShutdownTime(void) {
++systemSettings.ShutdownTime; systemSettings.ShutdownTime++;
if (systemSettings.ShutdownTime > 60) if (systemSettings.ShutdownTime > 60) {
systemSettings.ShutdownTime = 0; //wrap to off systemSettings.ShutdownTime = 0; //wrap to off
} }
}
static void settings_displayShutdownTime(void) { static void settings_displayShutdownTime(void) {
lcd.print(SettingsShortNames[3]); printShortDescription(3, 6);
lcd.printNumber(systemSettings.ShutdownTime, 2); lcd.printNumber(systemSettings.ShutdownTime, 2);
} }
static void settings_setTempF(void) { static void settings_setTempF(void) {
systemSettings.temperatureInF = !systemSettings.temperatureInF; systemSettings.temperatureInF = !systemSettings.temperatureInF;
} }
static void settings_displayTempF(void) {
lcd.print(SettingsShortNames[5]);
if (systemSettings.temperatureInF) static void settings_displayTempF(void) {
lcd.drawChar('F'); printShortDescription(5, 7);
else
lcd.drawChar('C'); lcd.drawChar(
(systemSettings.temperatureInF)
? 'F'
: 'C'
);
} }
static void settings_setSensitivity(void) { static void settings_setSensitivity(void) {
systemSettings.sensitivity++; systemSettings.sensitivity++;
systemSettings.sensitivity = systemSettings.sensitivity % 10; systemSettings.sensitivity = systemSettings.sensitivity % 10;
} }
static void settings_displaySensitivity(void) { static void settings_displaySensitivity(void) {
lcd.print(SettingsShortNames[4]); printShortDescription(4, 7);
lcd.printNumber(systemSettings.sensitivity, 1); lcd.printNumber(systemSettings.sensitivity, 1);
} }
static void settings_setAdvancedSolderingScreens(void) { static void settings_setAdvancedSolderingScreens(void) {
systemSettings.detailedSoldering = !systemSettings.detailedSoldering; systemSettings.detailedSoldering = !systemSettings.detailedSoldering;
} }
static void settings_displayAdvancedSolderingScreens(void) { static void settings_displayAdvancedSolderingScreens(void) {
lcd.print(SettingsShortNames[15]); printShortDescription(15, 7);
if (systemSettings.detailedSoldering)
lcd.drawChar(SettingTrueChar); lcd.drawChar(
else (systemSettings.detailedSoldering)
lcd.drawChar(SettingFalseChar); ? SettingTrueChar
: SettingFalseChar
);
} }
static void settings_setAdvancedIDLEScreens(void) { static void settings_setAdvancedIDLEScreens(void) {
systemSettings.detailedIDLE = !systemSettings.detailedIDLE; systemSettings.detailedIDLE = !systemSettings.detailedIDLE;
} }
static void settings_displayAdvancedIDLEScreens(void) { static void settings_displayAdvancedIDLEScreens(void) {
lcd.print(SettingsShortNames[6]); printShortDescription(6, 7);
if (systemSettings.detailedIDLE)
lcd.drawChar(SettingTrueChar); lcd.drawChar(
else (systemSettings.detailedIDLE)
lcd.drawChar(SettingFalseChar); ? SettingTrueChar
: SettingFalseChar
);
} }
@@ -160,8 +224,10 @@ static void settings_setDisplayRotation(void) {
systemSettings.OrientationMode++; systemSettings.OrientationMode++;
systemSettings.OrientationMode = systemSettings.OrientationMode % 3; systemSettings.OrientationMode = systemSettings.OrientationMode % 3;
} }
static void settings_displayDisplayRotation(void) { static void settings_displayDisplayRotation(void) {
lcd.print(SettingsShortNames[7]); printShortDescription(7, 7);
switch (systemSettings.OrientationMode) { switch (systemSettings.OrientationMode) {
case 0: case 0:
lcd.drawChar(SettingRightChar); lcd.drawChar(SettingRightChar);
@@ -173,66 +239,87 @@ static void settings_displayDisplayRotation(void) {
lcd.drawChar(SettingAutoChar); lcd.drawChar(SettingAutoChar);
break; break;
} }
} }
static void settings_setBoostModeEnabled(void) { static void settings_setBoostModeEnabled(void) {
systemSettings.boostModeEnabled = !systemSettings.boostModeEnabled; systemSettings.boostModeEnabled = !systemSettings.boostModeEnabled;
} }
static void settings_displayBoostModeEnabled(void) { static void settings_displayBoostModeEnabled(void) {
lcd.print(SettingsShortNames[8]); printShortDescription(8, 7);
if (systemSettings.boostModeEnabled)
lcd.drawChar(SettingTrueChar); lcd.drawChar(
else (systemSettings.boostModeEnabled)
lcd.drawChar(SettingFalseChar); ? SettingTrueChar
: SettingFalseChar
);
} }
static void settings_setBoostTemp(void) { static void settings_setBoostTemp(void) {
systemSettings.BoostTemp += 10; //Go up 10 at a time systemSettings.BoostTemp += 10; //Go up 10 at a time
if (systemSettings.temperatureInF) { if (systemSettings.temperatureInF) {
if (systemSettings.BoostTemp > 850) if (systemSettings.BoostTemp > 850) {
systemSettings.BoostTemp = 480; //loop back at 250 systemSettings.BoostTemp = 480; //loop back at 250
} else { }
if (systemSettings.BoostTemp > 450) }
else {
if (systemSettings.BoostTemp > 450) {
systemSettings.BoostTemp = 250; //loop back at 250 systemSettings.BoostTemp = 250; //loop back at 250
} }
} }
}
static void settings_displayBoostTemp(void) { static void settings_displayBoostTemp(void) {
lcd.print(SettingsShortNames[9]); printShortDescription(9, 5);
lcd.printNumber(systemSettings.BoostTemp, 3); lcd.printNumber(systemSettings.BoostTemp, 3);
} }
static void settings_setAutomaticStartMode(void) { static void settings_setAutomaticStartMode(void) {
systemSettings.autoStartMode++; systemSettings.autoStartMode++;
systemSettings.autoStartMode %= 2; systemSettings.autoStartMode %= 2;
} }
static void settings_displayAutomaticStartMode(void) { static void settings_displayAutomaticStartMode(void) {
lcd.print(SettingsShortNames[10]); printShortDescription(10, 7);
switch (systemSettings.autoStartMode) {
case 0: lcd.drawChar(
lcd.drawChar(SettingFalseChar); (systemSettings.autoStartMode)
break; ? SettingTrueChar
case 1: : SettingFalseChar
lcd.drawChar(SettingTrueChar); );
break;
}
} }
static void settings_setCoolingBlinkEnabled(void) { static void settings_setCoolingBlinkEnabled(void) {
systemSettings.coolingTempBlink = !systemSettings.coolingTempBlink; systemSettings.coolingTempBlink = !systemSettings.coolingTempBlink;
} }
static void settings_displayCoolingBlinkEnabled(void) { static void settings_displayCoolingBlinkEnabled(void) {
lcd.print(SettingsShortNames[11]); printShortDescription(11, 7);
if (systemSettings.coolingTempBlink)
lcd.drawChar(SettingTrueChar); lcd.drawChar(
else (systemSettings.coolingTempBlink)
lcd.drawChar(SettingFalseChar); ? SettingTrueChar
: SettingFalseChar
);
} }
static void settings_setResetSettings(void) { static void settings_setResetSettings(void) {
settingsResetRequest = !settingsResetRequest; settingsResetRequest = !settingsResetRequest;
} }
static void settings_displayResetSettings(void) { static void settings_displayResetSettings(void) {
lcd.print(SettingsShortNames[13]); printShortDescription(13, 7);
if (settingsResetRequest)
lcd.drawChar(SettingTrueChar); lcd.drawChar(
else (settingsResetRequest)
lcd.drawChar(SettingFalseChar); ? SettingTrueChar
: SettingFalseChar
);
} }
static void settings_setCalibrate(void) { static void settings_setCalibrate(void) {
@@ -240,16 +327,18 @@ static void settings_setCalibrate(void) {
//We split off here to confirm with the user //We split off here to confirm with the user
uint8_t maxOffset = strlen(SettingsCalibrationWarning) + 5; uint8_t maxOffset = strlen(SettingsCalibrationWarning) + 5;
uint32_t descriptionStart = HAL_GetTick(); uint32_t descriptionStart = HAL_GetTick();
lcd.setFont(0); lcd.setFont(0);
lcd.clearScreen(); lcd.clearScreen();
lcd.setCursor(0, 0); lcd.setCursor(0, 0);
for (;;) {
for (;;) {
int16_t descriptionOffset = (((HAL_GetTick() - descriptionStart) / 150) % maxOffset); int16_t descriptionOffset = (((HAL_GetTick() - descriptionStart) / 150) % maxOffset);
lcd.setCursor(12 * (7 - descriptionOffset), 0); lcd.setCursor(12 * (7 - descriptionOffset), 0);
lcd.print(SettingsCalibrationWarning); lcd.print(SettingsCalibrationWarning);
ButtonState buttons = getButtonState();
ButtonState buttons = getButtonState();
switch (buttons) { switch (buttons) {
case BUTTON_F_SHORT: { case BUTTON_F_SHORT: {
//User confirmed //User confirmed
@@ -258,12 +347,14 @@ static void settings_setCalibrate(void) {
lcd.setCursor(0, 0); lcd.setCursor(0, 0);
lcd.print("....."); lcd.print(".....");
lcd.refresh(); lcd.refresh();
setCalibrationOffset(0); //turn off the current offset setCalibrationOffset(0); //turn off the current offset
for (uint8_t i = 0; i < 20; i++) { for (uint8_t i = 0; i < 20; i++) {
getTipRawTemp(1); //cycle through the filter a fair bit to ensure were stable. getTipRawTemp(1); //cycle through the filter a fair bit to ensure we're stable.
osDelay(20); osDelay(20);
} }
osDelay(100); osDelay(100);
uint16_t rawTempC = tipMeasurementToC(getTipRawTemp(0)); uint16_t rawTempC = tipMeasurementToC(getTipRawTemp(0));
//We now measure the current reported tip temperature //We now measure the current reported tip temperature
uint16_t handleTempC = getHandleTemperature() / 10; uint16_t handleTempC = getHandleTemperature() / 10;
@@ -274,30 +365,33 @@ static void settings_setCalibrate(void) {
osDelay(100); osDelay(100);
return; return;
} }
break;
case BUTTON_BOTH: case BUTTON_BOTH:
case BUTTON_B_SHORT: case BUTTON_B_SHORT:
case BUTTON_F_LONG: case BUTTON_F_LONG:
case BUTTON_B_LONG: case BUTTON_B_LONG:
return; return;
break;
case BUTTON_NONE: case BUTTON_NONE:
break; break;
} }
lcd.refresh(); lcd.refresh();
osDelay(50); osDelay(50);
} }
}
}
static void settings_displayCalibrate(void) { static void settings_displayCalibrate(void) {
lcd.print(SettingsShortNames[12]); printShortDescription(12, 5);
} }
static void settings_setCalibrateVIN(void) { static void settings_setCalibrateVIN(void) {
//Jump to the voltage calibration subscreen //Jump to the voltage calibration subscreen
lcd.setFont(0); lcd.setFont(0);
lcd.clearScreen(); lcd.clearScreen();
lcd.setCursor(0, 0); lcd.setCursor(0, 0);
for (;;) { for (;;) {
lcd.setCursor(0, 0); lcd.setCursor(0, 0);
lcd.printNumber(getInputVoltageX10(systemSettings.voltageDiv) / 10, 2); lcd.printNumber(getInputVoltageX10(systemSettings.voltageDiv) / 10, 2);
@@ -310,30 +404,34 @@ static void settings_setCalibrateVIN(void) {
case BUTTON_F_SHORT: case BUTTON_F_SHORT:
systemSettings.voltageDiv++; systemSettings.voltageDiv++;
break; break;
case BUTTON_B_SHORT: case BUTTON_B_SHORT:
systemSettings.voltageDiv--; systemSettings.voltageDiv--;
break; break;
case BUTTON_BOTH: case BUTTON_BOTH:
case BUTTON_F_LONG: case BUTTON_F_LONG:
case BUTTON_B_LONG: case BUTTON_B_LONG:
saveSettings(); saveSettings();
return; return;
break;
case BUTTON_NONE: case BUTTON_NONE:
break; break;
} }
lcd.refresh(); lcd.refresh();
osDelay(50); osDelay(50);
if (systemSettings.voltageDiv < 90)
systemSettings.voltageDiv = 90;
else if (systemSettings.voltageDiv > 130)
systemSettings.voltageDiv = 130;
//Cap to sensible values
}
}
static void settings_displayCalibrateVIN(void) {
lcd.clearScreen();
lcd.setCursor(0, 0);
lcd.print(SettingsShortNames[14]);
//Cap to sensible values
if (systemSettings.voltageDiv < 90) {
systemSettings.voltageDiv = 90;
}
else if (systemSettings.voltageDiv > 130) {
systemSettings.voltageDiv = 130;
}
}
}
static void settings_displayCalibrateVIN(void) {
printShortDescription(14, 5);
} }

View File

@@ -129,7 +129,7 @@
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="fr.ac6.managedbuild.targetPlatform.gnu.cross.793444160" isAbstract="false" osList="all" superClass="fr.ac6.managedbuild.targetPlatform.gnu.cross"/> <targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="fr.ac6.managedbuild.targetPlatform.gnu.cross.793444160" isAbstract="false" osList="all" superClass="fr.ac6.managedbuild.targetPlatform.gnu.cross"/>
<builder buildPath="${workspace_loc:/TS100}/Release" id="fr.ac6.managedbuild.builder.gnu.cross.548236022" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="fr.ac6.managedbuild.builder.gnu.cross"/> <builder buildPath="${workspace_loc:/TS100}/Release" id="fr.ac6.managedbuild.builder.gnu.cross.548236022" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="fr.ac6.managedbuild.builder.gnu.cross"/>
<tool id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.1363306495" name="MCU GCC Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler"> <tool id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.1363306495" name="MCU GCC Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler">
<option id="fr.ac6.managedbuild.gnu.c.compiler.option.optimization.level.1100266163" name="Optimization Level" superClass="fr.ac6.managedbuild.gnu.c.compiler.option.optimization.level" useByScannerDiscovery="false" value="fr.ac6.managedbuild.gnu.c.optimization.level.size" valueType="enumerated"/> <option id="fr.ac6.managedbuild.gnu.c.compiler.option.optimization.level.1100266163" name="Optimization Level" superClass="fr.ac6.managedbuild.gnu.c.compiler.option.optimization.level" useByScannerDiscovery="false" value="fr.ac6.managedbuild.gnu.c.optimization.level.more" valueType="enumerated"/>
<option id="gnu.c.compiler.option.debugging.level.2139237845" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.c.debugging.level.none" valueType="enumerated"/> <option id="gnu.c.compiler.option.debugging.level.2139237845" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.c.debugging.level.none" valueType="enumerated"/>
<option id="gnu.c.compiler.option.include.paths.1770182855" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath"> <option id="gnu.c.compiler.option.include.paths.1770182855" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;${ProjDirPath}/inc&quot;"/> <listOptionValue builtIn="false" value="&quot;${ProjDirPath}/inc&quot;"/>
@@ -154,7 +154,7 @@
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s.1210653460" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s"/> <inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s.1210653460" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s"/>
</tool> </tool>
<tool id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.1414722294" name="MCU G++ Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler"> <tool id="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler.1414722294" name="MCU G++ Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.cpp.compiler">
<option id="fr.ac6.managedbuild.gnu.cpp.compiler.option.optimization.level.1489744363" name="Optimization Level" superClass="fr.ac6.managedbuild.gnu.cpp.compiler.option.optimization.level" useByScannerDiscovery="false" value="fr.ac6.managedbuild.gnu.cpp.optimization.level.size" valueType="enumerated"/> <option id="fr.ac6.managedbuild.gnu.cpp.compiler.option.optimization.level.1489744363" name="Optimization Level" superClass="fr.ac6.managedbuild.gnu.cpp.compiler.option.optimization.level" useByScannerDiscovery="false" value="fr.ac6.managedbuild.gnu.cpp.optimization.level.more" valueType="enumerated"/>
<option id="gnu.cpp.compiler.option.debugging.level.641509376" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/> <option id="gnu.cpp.compiler.option.debugging.level.641509376" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/>
<option id="gnu.cpp.compiler.option.include.paths.105977434" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath"> <option id="gnu.cpp.compiler.option.include.paths.105977434" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;${ProjDirPath}/inc&quot;"/> <listOptionValue builtIn="false" value="&quot;${ProjDirPath}/inc&quot;"/>

View File

@@ -449,7 +449,6 @@ const uint8_t idleScreenBGF[] = {
const unsigned char ASCII6x8[] = { const unsigned char ASCII6x8[] = {
//1*8*6 һ<><D2BB>
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // sp 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // sp
0x00, 0x00, 0x00, 0x2f, 0x00, 0x00, // ! 0x00, 0x00, 0x00, 0x2f, 0x00, 0x00, // !
0x00, 0x00, 0x07, 0x00, 0x07, 0x00, // " 0x00, 0x00, 0x07, 0x00, 0x07, 0x00, // "