Compare commits

...

3 Commits

Author SHA1 Message Date
Ben V. Brown
07893daec7 Increase PWM rate 2023-09-23 13:06:44 +10:00
discip
b489601883 Merge pull request #1818 from dogtopus/add-missing-chinese-translation
Add missing Chinese translation
2023-09-22 21:37:09 +02:00
dogtopus
e56060ab4a Add missing Chinese translation
I'm not very good at zh_TW so some of the terms might sound strange.
2023-09-22 00:47:46 -03:00
3 changed files with 24 additions and 24 deletions

View File

@@ -4,7 +4,7 @@
"tempUnitFahrenheit": true, "tempUnitFahrenheit": true,
"messagesWarn": { "messagesWarn": {
"CalibrationDone": { "CalibrationDone": {
"message": "Calibration done!" "message": "校正完成!"
}, },
"ResetOKMessage": { "ResetOKMessage": {
"message": "已重置!" "message": "已重置!"
@@ -31,13 +31,13 @@
"message": "加热失控" "message": "加热失控"
}, },
"WarningTipShorted": { "WarningTipShorted": {
"message": "!Tip Shorted!" "message": "!烙铁头短路!"
}, },
"SettingsCalibrationWarning": { "SettingsCalibrationWarning": {
"message": "Before rebooting, make sure tip & handle are at room temperature!" "message": "在重启前请确认烙铁头及本体已完全冷却!"
}, },
"CJCCalibrating": { "CJCCalibrating": {
"message": "calibrating" "message": "校正中"
}, },
"SettingsResetWarning": { "SettingsResetWarning": {
"message": "你是否确定要将全部设定重置为默认值?" "message": "你是否确定要将全部设定重置为默认值?"
@@ -133,7 +133,7 @@
}, },
"PDVpdo": { "PDVpdo": {
"displayText": "PD VPDO", "displayText": "PD VPDO",
"description": "Enables PPS & EPR modes" "description": "启用PPS和EPR快充支持"
}, },
"BoostTemperature": { "BoostTemperature": {
"displayText": "增热温度", "displayText": "增热温度",
@@ -280,8 +280,8 @@
"description": "焊接模式画面以英语小字体显示详请" "description": "焊接模式画面以英语小字体显示详请"
}, },
"BluetoothLE": { "BluetoothLE": {
"displayText": "Bluetooth", "displayText": "蓝牙",
"description": "Enables BLE" "description": "启用蓝牙支持"
}, },
"PowerLimit": { "PowerLimit": {
"displayText": "功率限制", "displayText": "功率限制",
@@ -289,7 +289,7 @@
}, },
"CalibrateCJC": { "CalibrateCJC": {
"displayText": "校正CJC", "displayText": "校正CJC",
"description": "At next boot tip Cold Junction Compensation will be calibrated (not required if Delta T is < 5 C)" "description": "在下次重启时校正烙铁头热电偶冷接点补偿值CJC温差小于5摄氏度时无需校正"
}, },
"VoltageCalibration": { "VoltageCalibration": {
"displayText": "输入电压校正?", "displayText": "输入电压校正?",
@@ -316,4 +316,4 @@
"description": "" "description": ""
} }
} }
} }

View File

@@ -4,7 +4,7 @@
"tempUnitFahrenheit": true, "tempUnitFahrenheit": true,
"messagesWarn": { "messagesWarn": {
"CalibrationDone": { "CalibrationDone": {
"message": "Calibration done!" "message": "校正完成!"
}, },
"ResetOKMessage": { "ResetOKMessage": {
"message": "已重設!" "message": "已重設!"
@@ -31,13 +31,13 @@
"message": "加熱失控" "message": "加熱失控"
}, },
"WarningTipShorted": { "WarningTipShorted": {
"message": "!Tip Shorted!" "message": "!烙鐵頭短路!"
}, },
"SettingsCalibrationWarning": { "SettingsCalibrationWarning": {
"message": "Before rebooting, make sure tip & handle are at room temperature!" "message": "在重啟前請確認烙鐵頭及本體已完全冷卻!"
}, },
"CJCCalibrating": { "CJCCalibrating": {
"message": "calibrating" "message": "校正中"
}, },
"SettingsResetWarning": { "SettingsResetWarning": {
"message": "你是否確定要將全部設定重設到預設值?" "message": "你是否確定要將全部設定重設到預設值?"
@@ -133,7 +133,7 @@
}, },
"PDVpdo": { "PDVpdo": {
"displayText": "PD VPDO", "displayText": "PD VPDO",
"description": "Enables PPS & EPR modes" "description": "開啟PPS及EPR支援"
}, },
"BoostTemperature": { "BoostTemperature": {
"displayText": "增熱溫度", "displayText": "增熱溫度",
@@ -280,8 +280,8 @@
"description": "於焊接模式畫面以英文小字型顯示詳細資料" "description": "於焊接模式畫面以英文小字型顯示詳細資料"
}, },
"BluetoothLE": { "BluetoothLE": {
"displayText": "Bluetooth", "displayText": "藍牙",
"description": "Enables BLE" "description": "開啟藍牙支援"
}, },
"PowerLimit": { "PowerLimit": {
"displayText": "功率限制", "displayText": "功率限制",
@@ -289,7 +289,7 @@
}, },
"CalibrateCJC": { "CalibrateCJC": {
"displayText": "校正CJC", "displayText": "校正CJC",
"description": "At next boot tip Cold Junction Compensation will be calibrated (not required if Delta T is < 5 C)" "description": "在下次重啟時校正烙鐵頭熱電偶冷接點補償值CJC溫差小於5攝氏度時無需校正"
}, },
"VoltageCalibration": { "VoltageCalibration": {
"displayText": "輸入電壓校正?", "displayText": "輸入電壓校正?",
@@ -316,4 +316,4 @@
"description": "" "description": ""
} }
} }
} }

View File

@@ -112,8 +112,8 @@ void timer0_comp1_callback(void) { PWM_Channel_Disable(PWM_Channel); } // Trigge
void switchToFastPWM(void) { void switchToFastPWM(void) {
inFastPWMMode = true; inFastPWMMode = true;
holdoffTicks = 10; holdoffTicks = 20;
tempMeasureTicks = 10; tempMeasureTicks = 20;
totalPWM = powerPWM + tempMeasureTicks + holdoffTicks; totalPWM = powerPWM + tempMeasureTicks + holdoffTicks;
TIMER_SetCompValue(TIMER_CH0, TIMER_COMP_ID_2, totalPWM); TIMER_SetCompValue(TIMER_CH0, TIMER_COMP_ID_2, totalPWM);
@@ -123,7 +123,7 @@ void switchToFastPWM(void) {
uint32_t tmpVal = BL_RD_REG(TIMER_BASE, TIMER_TCDR); uint32_t tmpVal = BL_RD_REG(TIMER_BASE, TIMER_TCDR);
tmpVal = BL_SET_REG_BITS_VAL(tmpVal, TIMER_TCDR2, 10); tmpVal = BL_SET_REG_BITS_VAL(tmpVal, TIMER_TCDR2, 6);
BL_WR_REG(TIMER_BASE, TIMER_TCDR, tmpVal); BL_WR_REG(TIMER_BASE, TIMER_TCDR, tmpVal);
} }
@@ -131,8 +131,8 @@ void switchToFastPWM(void) {
void switchToSlowPWM(void) { void switchToSlowPWM(void) {
// 5Hz // 5Hz
inFastPWMMode = false; inFastPWMMode = false;
holdoffTicks = 5; holdoffTicks = 10;
tempMeasureTicks = 5; tempMeasureTicks = 10;
totalPWM = powerPWM + tempMeasureTicks + holdoffTicks; totalPWM = powerPWM + tempMeasureTicks + holdoffTicks;
TIMER_SetCompValue(TIMER_CH0, TIMER_COMP_ID_2, totalPWM); TIMER_SetCompValue(TIMER_CH0, TIMER_COMP_ID_2, totalPWM);
@@ -143,7 +143,7 @@ void switchToSlowPWM(void) {
uint32_t tmpVal = BL_RD_REG(TIMER_BASE, TIMER_TCDR); uint32_t tmpVal = BL_RD_REG(TIMER_BASE, TIMER_TCDR);
tmpVal = BL_SET_REG_BITS_VAL(tmpVal, TIMER_TCDR2, 20); tmpVal = BL_SET_REG_BITS_VAL(tmpVal, TIMER_TCDR2, 12);
BL_WR_REG(TIMER_BASE, TIMER_TCDR, tmpVal); BL_WR_REG(TIMER_BASE, TIMER_TCDR, tmpVal);
} }