Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several extra functions #43

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
<!-- 在Arduino 中选择Tools-Upload Mode- Internal USB -->
5. In Arduino, select Tools-Upload Mode-Internal USB
<!-- 点击上传 -->
6. Click Upload
6. Click Upload
220 changes: 108 additions & 112 deletions SolderingPen_ESP32S2/Languages.h
Original file line number Diff line number Diff line change
@@ -1,123 +1,119 @@
// 菜单项
const uint8_t language_types = 3;
const uint8_t language_types = 4;
// "温控类型", "溫控類型", "Control Type",

const char *SetupItems[][language_types] = { "菜单设置", "菜單設置", "Setup Menu",
"烙铁头设置", "烙鐵頭設置", "Tip Settings",
"温度设置", "溫度設置", "Temp Settings",
"时间设置", "時間設置", "Timer Settings",
"主屏幕", "主屏幕", "Main Screen",
"信息", "信息", "Information",
"电压设置", "電壓設置", "Voltage",
"QC", "QC", "QC",
"蜂鸣器", "蜂鳴器", "Buzzer",
"恢复默认设置", "恢復默認設置", "Restore Config",
"更新版本", "更新版本", "Update Firmware",
"Languages", "Languages", "Languages",
"切换左右手", "切换左右手", "L/R Hand",
"返回", "返回", "Return" };
const char *LanguagesItems[][language_types] = { "Languages", "Languages", "Languages",
"简体中文", "简体中文", "zh-CN",
"繁体中文", "繁体中文", "zh-TW",
"English", "English", "English" };
const char *TipItems[][language_types] = { "烙铁头:", "烙鐵頭:", "Tip:",
"更换烙铁头", "更換烙鐵頭", "Change Tip",
"校准烙铁头", "校準烙鐵頭", "Calibrate Tip",
"重命名烙铁头", "重命名烙鐵頭", "Rename Tip",
"删除烙铁头", "刪除烙鐵頭", "Delete Tip",
"新建烙铁头", "新建烙鐵頭", "New Tip",
"返回", "返回", "Return" };
const char *TempItems[][language_types] = { "温度设置", "溫度設置", "Temp Settings",
"默认温度", "默認溫度", "Default Temp",
"休眠温度", "休眠溫度", "Sleep Temp",
"提高温度", "提高溫度", "Boost Temp",
"返回", "返回", "Return" };
const char *TimerItems[][language_types] = { "时间设置", "時間設置", "Timer Settings",
"休眠时间", "休眠時間", "Sleep Timer",
"关闭时间", "關閉時間", "Shutdown Timer",
"提温时间", "提溫時間", "Boost Timer",
"唤醒阈值", "唤醒閾值", "Wake Threshold",
"返回", "返回", "Return" };
const char *ControlTypeItems[][language_types] = { "温控类型", "溫控類型", "Control Type",
"非PID", "非PID", "Non-PID",
"PID", "PID", "PID" };
const char *SetupItems[][language_types] = { "菜单设置", "菜單設置", "Setup Menu", "Configuración",
"烙铁头设置", "烙鐵頭設置", "Tip Settings", "Punta",
"温度设置", "溫度設置", "Temp Settings", "Temperatura",
"时间设置", "時間設置", "Timer Settings", "Temporizadores",
"主屏幕", "主屏幕", "Main Screen", "Pnt. Principal",
"信息", "信息", "Information", "Información",
"电压设置", "電壓設置", "Voltage", "Voltaje",
"QC", "QC", "QC", "QC",
"蜂鸣器", "蜂鳴器", "Buzzer", "Zumbador",
"恢复默认设置", "恢復默認設置", "Restore Config", "Restaurar Conf.",
"更新版本", "更新版本", "Update Firmware", "Act. Firmware",
"Languages", "Languages", "Languages", "Idiomas",
"切换左右手", "切换左右手", "L/R Hand", "Cambiar Mano",
"返回", "返回", "Return", "Volver" };
const char *LanguagesItems[][language_types] = { "Languages", "Languages", "Languages", "Idiomas",
"简体中文", "简体中文", "zh-CN", "zh-CN",
"繁体中文", "繁体中文", "zh-TW", "zh-TW",
"English", "English", "English", "English",
"Spanish", "Spanish", "Español", "Español" };
const char *TipItems[][language_types] = { "烙铁头:", "烙鐵頭:", "Tip:", "Punta:",
"更换烙铁头", "更換烙鐵頭", "Change Tip", "Cambiar Punta",
"校准烙铁头", "校準烙鐵頭", "Calibrate Tip", "Calibrar Punta",
"重命名烙铁头", "重命名烙鐵頭", "Rename Tip", "Renombrar Punta",
"删除烙铁头", "刪除烙鐵頭", "Delete Tip", "Eliminar Punta",
"新建烙铁头", "新建烙鐵頭", "New Tip", "Nueva Punta",
"返回", "返回", "Return", "Volver" };
const char *TempItems[][language_types] = { "温度设置", "溫度設置", "Temp Settings", "Temperatura",
"默认温度", "默認溫度", "Default Temp", "Normal",
"休眠温度", "休眠溫度", "Sleep Temp", "Modo Sueño",
"提高温度", "提高溫度", "Boost Temp", "Aumentada",
"返回", "返回", "Return", "Volver" };
const char *TimerItems[][language_types] = { "时间设置", "時間設置", "Timer Settings", "Temporizadores",
"休眠时间", "休眠時間", "Sleep Timer", "Tempor. Sueño",
"关闭时间", "關閉時間", "Shutdown Timer", "Tempr. Apagado",
"提温时间", "提溫時間", "Boost Timer", "Tempr. Aumento",
"唤醒阈值", "唤醒閾值", "Wake Threshold", "Umbral Encend.",
"返回", "返回", "Return", "Volver" };
const char *ControlTypeItems[][language_types] = { "温控类型", "溫控類型", "Control Type", "Tipo de Control",
"非PID", "非PID", "Non-PID", "No PID",
"PID", "PID", "PID", "PID" };
const char *MainScreenItems[][language_types] = {
"主屏幕",
"主屏幕",
"Main Screen",
"大数字",
"大數字",
"Big Number",
"更多信息",
"更多信息",
"More Info",
"主屏幕", "主屏幕", "Main Screen", "Pnt. Principal",
"大数字", "大數字", "Big Number", "Núm. Grandes",
"更多信息", "更多信息", "More Info", "Más Info",
"高密度", "高密度", "High Density", "Alta Densidad",
};
const char *StoreItems[][language_types] = { "存储设置?", "存儲設置?", "Save?",
"否", "否", "No",
"是", "是", "Yes" };
const char *DefaultItems[][language_types] = { "恢复设置?", "恢復設置?", "Restore?",
"否", "否", "No",
"是", "是", "Yes" };
const char *SureItems[][language_types] = { "确定?", "確定?", "Sure?",
"否", "否", "No",
"是", "是", "Yes" };
const char *VoltageItems[][language_types] = { "电压设置", "電壓設置", "Voltage Settings",
"9V", "9V", "9V",
"12V", "12V", "12V",
"15V", "15V", "15V",
"20V(50%)", "20V(50%)", "20V(50%)",
"20V(100%)", "20V(100%)", "20V(100%)"};
const char *QCItems[][language_types] = { "QC", "QC", "QC",
"禁用", "禁用", "Disable",
"启用", "啟用", "Enable" };
const char *BuzzerItems[][language_types] = { "蜂鸣器", "蜂鳴器", "Buzzer",
"禁用", "禁用", "Disable",
"启用", "啟用", "Enable" };
const char *DefaultTempItems[][language_types] = { "默认温度", "默認溫度", "Default Temp",
"deg C", "deg C", "deg C" };
const char *SleepTempItems[][language_types] = { "休眠温度", "休眠溫度", "Sleep Temp",
"deg C", "deg C", "deg C" };
const char *BoostTempItems[][language_types] = { "提高温度", "提高溫度", "Boost Temp",
"deg C", "deg C", "deg C" };
const char *SleepTimerItems[][language_types] = { "休眠时间", "休眠時間", "Sleep Timer",
"秒", "秒", "sec" };
const char *WAKEUPthresholdItems[][language_types] = { "唤醒阈值", "唤醒閾值", "Wake Threshold",
"mg", "mg", "mg" };
const char *OffTimerItems[][language_types] = { "关闭时间", "關閉時間", "Shutdown Timer",
"分钟", "分鐘", "min" };
const char *BoostTimerItems[][language_types] = { "提温时间", "提溫時間", "Boost Timer",
"秒", "秒", "sec" };
const char *DeleteMessage[][language_types] = { "警告", "警告", "Warning",
"你不能", "你不能", "You can't",
"删除你的", "刪除你的", "delete your",
"最后的烙铁头!", "最後的烙鐵頭!", "last tip!" };
const char *MaxTipMessage[][language_types] = { "警告", "警告", "Warning",
"你已达", "你已達", "You reached",
"最大数量", "最大數量", "maximum number",
"的烙铁头!", "的烙鐵頭!", "of tips!" };
const char *StoreItems[][language_types] = { "存储设置?", "存儲設置?", "Save?", "¿Guardar?",
"否", "否", "No", "No",
"是", "是", "Yes", "Sí" };
const char *DefaultItems[][language_types] = { "恢复设置?", "恢復設置?", "Restore?", "¿Restaurar?",
"否", "否", "No", "No",
"是", "是", "Yes", "Sí" };
const char *SureItems[][language_types] = { "确定?", "確定?", "Sure?", "¿Confirmar?",
"否", "否", "No", "No",
"是", "是", "Yes", "Sí" };
const char *VoltageItems[][language_types] = { "电压设置", "電壓設置", "Voltage Settings", "Voltaje",
"9V", "9V", "9V", "9V",
"12V", "12V", "12V", "12V",
"15V", "15V", "15V", "15V",
"20V(50%)", "20V(50%)", "20V(50%)", "20V(50%)",
"20V(100%)", "20V(100%)", "20V(100%)", "20V(100%)"};
const char *QCItems[][language_types] = { "QC", "QC", "QC", "QC",
"禁用", "禁用", "Disable", "Desactivar",
"启用", "啟用", "Enable", "Activar" };
const char *BuzzerItems[][language_types] = { "蜂鸣器", "蜂鳴器", "Buzzer", "Zumbador",
"禁用", "禁用", "Disable", "Desactivar",
"启用", "啟用", "Enable", "Activar" };
const char *DefaultTempItems[][language_types] = { "默认温度", "默認溫度", "Default Temp", "Temp. Normal",
"deg C", "deg C", "deg C", "grados C" };
const char *SleepTempItems[][language_types] = { "休眠温度", "休眠溫度", "Sleep Temp", "Temp. Sueño",
"deg C", "deg C", "deg C", "grados C" };
const char *BoostTempItems[][language_types] = { "提高温度", "提高溫度", "Boost Temp", "Temp. Aumentada",
"deg C", "deg C", "deg C", "grados C" };
const char *SleepTimerItems[][language_types] = { "休眠时间", "休眠時間", "Sleep Timer", "Tempor. Sueño",
"秒", "秒", "sec", "seg" };
const char *WAKEUPthresholdItems[][language_types] = { "唤醒阈值", "唤醒閾值", "Wake Threshold", "Umbral Encend.",
"mg", "mg", "mg", "mg" };
const char *OffTimerItems[][language_types] = { "关闭时间", "關閉時間", "Shutdown Timer", "Tempor. Apagado",
"分钟", "分鐘", "min", "min" };
const char *BoostTimerItems[][language_types] = { "提温时间", "提溫時間", "Boost Timer", "Tempor. Aumento",
"秒", "秒", "sec", "seg" };
const char *DeleteMessage[][language_types] = { "警告", "警告", "Warning", "Advertencia",
"你不能", "你不能", "You can't", "¡No puedes",
"删除你的", "刪除你的", "delete your", "eliminar tu",
"最后的烙铁头!", "最後的烙鐵頭!", "last tip!", "última punta!" };
const char *MaxTipMessage[][language_types] = { "警告", "警告", "Warning", "Advertencia",
"你已达", "你已達", "You reached", "¡Has alcanzado",
"最大数量", "最大數量", "maximum number", "el máximo",
"的烙铁头!", "的烙鐵頭!", "of tips!", "de puntas!" };

const char *txt_set_temp[] = { "设温:", "設溫:", "SET:" };
const char *txt_error[] = { "错误", "錯誤", "ERROR" };
const char *txt_off[] = { "关闭", "關閉", "OFF" };
const char *txt_sleep[] = { "休眠", "休眠", "SLEEP" };
const char *txt_boost[] = { "提温", "提溫", "BOOST" };
const char *txt_worky[] = { "工作", "工作", "WORK" };
const char *txt_on[] = { "加热", "加熱", "HEAT" };
const char *txt_hold[] = { "保持", "保持", "HOLD" };
const char *txt_set_temp[] = { "设温", "設溫", "SET", "TEMP" };
const char *txt_error[] = { "错误", "錯誤", "ERROR", "ERROR" };
const char *txt_off[] = { "关闭", "關閉", "OFF", "APAG" };
const char *txt_sleep[] = { "休眠", "休眠", "SLEEP", "SUEÑO" };
const char *txt_boost[] = { "提温", "提溫", "BOOST", "AUMEN" };
const char *txt_worky[] = { "工作", "工作", "WORK", "FUNC" };
const char *txt_on[] = { "加热", "加熱", "HEAT", "CALOR" };
const char *txt_hold[] = { "保持", "保持", "HOLD", "SUSP" };

const char *txt_Deactivated[] = { "禁用", "禁用", "Deactivated" };
const char *txt_Deactivated[] = { "禁用", "禁用", "Deactivated", "Desactivado" };

const char *txt_temp[] = { "温度:", "溫度:", "TEMP:" };
const char *txt_voltage[] = { "电压:", "電壓:", "VOLT:" };
const char *txt_Version[] = { "版本:", "版本:", "VER:" };
const char *txt_temp[] = { "温度:", "溫度:", "TEMP:", "TEMP:" };
const char *txt_voltage[] = { "电压:", "電壓:", "VOLT:", "VOLT:" };
const char *txt_Version[] = { "版本:", "版本:", "VER:", "VER:" };

const char *txt_select_tip[] = { "选择烙铁头", "選擇烙鐵頭", "Select Tip" };
const char *txt_select_tip[] = { "选择烙铁头", "選擇烙鐵頭", "Select Tip", "Elegir Punta" };

const char *txt_calibrate[] = { "校准", "校準", "Calibrate" };
const char *txt_step[] = { "步进", "步進", "Step" };
const char *txt_set_measured[] = { "设为测量", "設為測量", "Set Measure" };
const char *txt_s_temp[] = { "的温度:", "的溫度:", "Temp:" };
const char *txt_temp_2[] = { "温度: ", "溫度: ", "Temp: " };
const char *txt_wait_pls[] = { "请稍等...", "請稍等...", "Please wait ..." };
const char *txt_calibrate[] = { "校准", "校準", "Calibrate", "Calibrar" };
const char *txt_step[] = { "步进", "步進", "Step", "Paso" };
const char *txt_set_measured[] = { "设为测量", "設為測量", "Set Measure", "Medir" };
const char *txt_s_temp[] = { "的温度:", "的溫度:", "Temp:", "Temp:" };
const char *txt_temp_2[] = { "温度: ", "溫度: ", "Temp: ", "Temp: " };
const char *txt_wait_pls[] = { "请稍等...", "請稍等...", "Please wait ...", "Espera..." };

const char *txt_enter_tip_name[] = { "输入烙铁头名称", "輸入烙鐵頭名稱", "Enter Tip Name" };
const char *txt_enter_tip_name[] = { "输入烙铁头名称", "輸入烙鐵頭名稱", "Enter Tip Name", "Ingresar Nombre" };
Loading