mirror of
https://github.com/wagiminator/ATmega-Soldering-Station.git
synced 2025-08-07 13:00:30 +03:00
English is Back!!!
Once in order to add cool graphical interface, Chinese and even animation to make memory tight, it is not necessary to delete part of the English support. But after thrilling optimization (the project uses 32234 bytes and takes up (99%) program storage space. Up to 32256 bytes) 95% of English support is back (5% due to the removal of the message screen function) It's more difficult to scan the x648 code (nobody knows compression better than I do) At the same time, this version optimizes some animation experience! Of course, there are some shortcomings. When you look at the code, it is easy to find that the code from the English part about language support is very bloated I am shallow in knowledge, I hope someone can help me optimize it!!! 曾经为了加入炫酷的图形化界面、中文甚至动画使内存紧张不得以删除部分英文支持。 不过经过惊险的优化 (项目使用了 32234 字节,占用了 (99%) 程序存储空间。最大为 32256 字节) 95%的英文支持回来了 (5%是由于 MessageScreen函数被移除) 代价是二维码变得更难扫描(64x64 --> 48x48) (没有人比我更懂压缩) 同时此版本优化一些动画体验! 当然有一些缺点,当大家查阅代码的时候很容易发现来自于英文部分关于语言支持的代码写的很臃肿!? 我学识浅薄,我希望有人可以帮助我优化它!!!
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
2017
software/binaries/1.6L/T12.ino.standard.hex
Normal file
2017
software/binaries/1.6L/T12.ino.standard.hex
Normal file
File diff suppressed because it is too large
Load Diff
2050
software/binaries/1.6L/T12.ino.with_bootloader.standard.hex
Normal file
2050
software/binaries/1.6L/T12.ino.with_bootloader.standard.hex
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -53,15 +53,15 @@
|
||||
// Project Page: https://easyeda.com/wagiminator
|
||||
|
||||
//关于界面-项目页面二维码
|
||||
const unsigned char QRCode[] PROGMEM = { 0x00, 0x00, 0x3e,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0x0c, 0x0c, 0x63, 0xe0, 0x00, 0x00, 0x31, 0xce, 0x0c, 0x0c, 0x63, 0xe0, 0x00, 0x00, 0x31, 0xce, 0x0c, 0x0c, 0x63, 0xe0, 0x1f, 0xfe, 0x30, 0x01, 0x83, 0x8f, 0xe0, 0xff, 0x1f, 0xfe, 0x30, 0x01, 0x83, 0x8f, 0xe0, 0xff, 0x18, 0x06, 0x31, 0xf1, 0x8f, 0x80, 0x03, 0xe7, 0x18, 0x06, 0x31, 0xf1, 0x8f, 0x80, 0x03, 0xe7, 0x18, 0x06, 0x31, 0xf1, 0x8f, 0x80, 0x03, 0xe7, 0x18, 0x06, 0x3f, 0xff, 0x83, 0x83, 0xe3, 0x1f, 0x18, 0x06, 0x3f, 0xff, 0x83, 0x83, 0xe3, 0x1f, 0x18, 0x06, 0x31, 0xfe, 0x73, 0x8f, 0x80, 0xf8, 0x18, 0x06, 0x31, 0xfe, 0x73, 0x8f, 0x80, 0xf8, 0x18, 0x06, 0x31, 0xfe, 0x73, 0x8f, 0x80, 0xf8, 0x1f, 0xfe, 0x31, 0xfe, 0x00, 0x0c, 0x60, 0xe7, 0x1f, 0xfe, 0x31, 0xfe, 0x00, 0x0c, 0x60, 0xe7, 0x00, 0x00, 0x31, 0xfe, 0x0c, 0x0f, 0x9f, 0xe0, 0x00, 0x00, 0x31, 0xfe, 0x0c, 0x0f, 0x9f, 0xe0, 0x00, 0x00, 0x31, 0xfe, 0x0c, 0x0f, 0x9f, 0xe0 };
|
||||
//const unsigned char QRCode[] PROGMEM={0};
|
||||
//const unsigned char QRCode[] PROGMEM = { 0x00, 0x00, 0x3e, 0x0e, 0x7c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x0e, 0x7c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x0e, 0x7c, 0x0c, 0x00, 0x00, 0x1f, 0xfe, 0x3f, 0xc1, 0x8c, 0x0c, 0x7f, 0xf8, 0x1f, 0xfe, 0x3f, 0xc1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xe0, 0xff, 0x18, 0x06, 0x31, 0xf1, 0x8f, 0x80, 0x03, 0xe7, 0x18, 0x06, 0x31, 0xf1, 0x8f, 0x80, 0x03, 0xe7, 0x18, 0x06, 0x31, 0xf1, 0x8f, 0x80, 0x03, 0xe7, 0x18, 0x06, 0x3f, 0xff, 0x83, 0x83, 0xe3, 0x1f, 0x18, 0x06, 0x3f, 0xff, 0x83, 0x83, 0xe3, 0x1f, 0x18, 0x06, 0x31, 0xfe, 0x73, 0x8f, 0x80, 0xf8, 0x18, 0x06, 0x31, 0xfe, 0x73, 0x8f, 0x80, 0xf8, 0x18, 0x06, 0x31, 0xfe, 0x73, 0x8f, 0x80, 0xf8, 0x1f, 0xfe, 0x31, 0xfe, 0x00, 0x0c, 0x60, 0xe7, 0x1f, 0xfe, 0x31, 0xfe, 0x00, 0x0c, 0x60, 0xe7, 0x00, 0x00, 0x31, 0xfe, 0x0c, 0x0f, 0x9f, 0xe0, 0x00, 0x00, 0x31, 0xfe, 0x0c, 0x0f, 0x9f, 0xe0, 0x00, 0x00, 0x31, 0xfe, 0x0c, 0x0f, 0x9f, 0xe0 };
|
||||
const unsigned char QRCode[] PROGMEM = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x03, 0x86, 0x70, 0x80, 0x03, 0x80, 0x03, 0x86, 0x70, 0x80, 0x03, 0x9f, 0xf3, 0xe1, 0x30, 0x9f, 0xf3, 0x9f, 0xf3, 0xe1, 0x30, 0x9f, 0xf3, 0x98, 0x33, 0x01, 0xcc, 0x98, 0x33, 0x98, 0x33, 0x01, 0xcc, 0x98, 0x33, 0x98, 0x33, 0x87, 0xc0, 0x98, 0x33, 0x98, 0x33, 0xe1, 0xc0, 0x98, 0x33, 0x98, 0x33, 0xe1, 0xc0, 0x98, 0x33, 0x9f, 0xf3, 0x98, 0xc0, 0x9f, 0xf3, 0x9f, 0xf3, 0x98, 0xc0, 0x9f, 0xf3, 0x80, 0x03, 0x66, 0xcc, 0x80, 0x03, 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, 0x03, 0x3e, 0x30, 0xe7, 0xc3, 0x80, 0x03, 0x3e, 0x30, 0xe7, 0xc3, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
|
||||
//ICO
|
||||
//width:16,height:16
|
||||
const unsigned char Tag[] PROGMEM = { 0x00, 0x00, 0x7e, 0x00, 0x7f, 0x00, 0x73, 0x80, 0x61, 0xc0, 0x61, 0xe0, 0x73, 0xf0, 0x3f, 0xf8, 0x1f, 0xfc, 0x0f, 0xfe, 0x07, 0xff, 0x03, 0xff, 0x01, 0xfe, 0x00, 0xfc, 0x00, 0x78, 0x00, 0x30 };
|
||||
const unsigned char Chip[] PROGMEM = { 0x12, 0x48, 0x12, 0x48, 0x1f, 0xf8, 0xe0, 0x07, 0x2e, 0x14, 0x2c, 0x04, 0xe8, 0x07, 0x20, 0x04, 0x20, 0x04, 0xe0, 0x07, 0x20, 0x04, 0x28, 0x14, 0xe0, 0x07, 0x1f, 0xf8, 0x12, 0x48, 0x12, 0x48 };
|
||||
const unsigned char HeatPipe[] PROGMEM = { 0x00, 0x00, 0x09, 0x90, 0x11, 0x88, 0x21, 0x84, 0x11, 0x88, 0x09, 0x90, 0x11, 0x88, 0x21, 0x84, 0x11, 0x88, 0x09, 0x90, 0x11, 0x88, 0x21, 0x84, 0x11, 0x88, 0x09, 0x90, 0x01, 0x80, 0x00, 0x00 };
|
||||
//const unsigned char HeatPipe[] PROGMEM = { 0x00, 0x00, 0x09, 0x90, 0x11, 0x88, 0x21, 0x84, 0x11, 0x88, 0x09, 0x90, 0x11, 0x88, 0x21, 0x84, 0x11, 0x88, 0x09, 0x90, 0x11, 0x88, 0x21, 0x84, 0x11, 0x88, 0x09, 0x90, 0x01, 0x80, 0x00, 0x00 };
|
||||
const unsigned char Lightning[] PROGMEM = { 0x00, 0x80, 0x00, 0x80, 0x01, 0x80, 0x01, 0x80, 0x03, 0x80, 0x07, 0x80, 0x07, 0xf0, 0x0f, 0xf0, 0x0f, 0xe0, 0x1f, 0xc0, 0x01, 0xc0, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x00, 0x01, 0x00 };
|
||||
const unsigned char Thermometer[] PROGMEM = { 0x01, 0x80, 0x02, 0x40, 0x03, 0x40, 0x02, 0x40, 0x03, 0x40, 0x02, 0x40, 0x03, 0x40, 0x02, 0x40, 0x03, 0x40, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x03, 0xc0 };
|
||||
//const unsigned char Thermometer[] PROGMEM = { 0x01, 0x80, 0x02, 0x40, 0x03, 0x40, 0x02, 0x40, 0x03, 0x40, 0x02, 0x40, 0x03, 0x40, 0x02, 0x40, 0x03, 0x40, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x03, 0xc0 };
|
||||
const unsigned char Pointer[] PROGMEM = { 0x20, 0x20, 0x70, 0xf8 };
|
||||
//状态提示
|
||||
//width:28,height:14 中文提示
|
||||
@@ -131,7 +131,7 @@ const byte Menu_table[] = {9, 6, 4, 4, 2, 2, 2, 2, 2, 2, 3}; //菜单 标签 温
|
||||
byte MenuLevel = 0; //菜单层级
|
||||
|
||||
/*
|
||||
语言库
|
||||
中文语言库
|
||||
*/
|
||||
// width: 36, height: 16 预设
|
||||
const unsigned char t0[] PROGMEM = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x7f, 0x90, 0xf8, 0x00, 0x01, 0x08, 0x08, 0x88, 0x00, 0x0a, 0x10, 0x08, 0x88, 0x00, 0x04, 0x7f, 0x01, 0x07, 0x00, 0x1f, 0xc1, 0x3a, 0x00, 0x00, 0x05, 0x49, 0x09, 0xfc, 0x00, 0x04, 0x49, 0x08, 0x84, 0x00, 0x04, 0x49, 0x08, 0x88, 0x00, 0x04, 0x49, 0x08, 0x48, 0x00, 0x04, 0x49, 0x08, 0x50, 0x00, 0x04, 0x49, 0x0a, 0x20, 0x00, 0x04, 0x16, 0x0c, 0x58, 0x00, 0x14, 0x21, 0x89, 0x87, 0x00, 0x08, 0xc0, 0x86, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
||||
@@ -268,34 +268,6 @@ uint8_t CurrentTip = 0;
|
||||
uint8_t NumberOfTips = 1;
|
||||
|
||||
// Menu items
|
||||
/*
|
||||
const char *SetupItems[] = { "Setup Menu", "Tip Settings", "Temp Settings",
|
||||
"Timer Settings", "Control Type", "Main Screen",
|
||||
"Buzzer", "Information", "Return"
|
||||
};
|
||||
const char *TipItems[] = { "Tip:", "Change Tip", "Calibrate Tip",
|
||||
"Rename Tip", "Delete Tip", "Add new Tip", "Return"
|
||||
};
|
||||
const char *TempItems[] = { "Temp Settings", "Default Temp", "Sleep Temp",
|
||||
"Boost Temp", "Return"
|
||||
};
|
||||
const char *TimerItems[] = { "Timer Settings", "Sleep Timer", "Off Timer",
|
||||
"Boost Timer", "Return"
|
||||
};
|
||||
|
||||
const char *ControlTypeItems[] = { "Control Type", "Direct", "PID" };
|
||||
const char *MainScreenItems[] = { "Main Screen", "Big Numbers", "More Infos" };
|
||||
const char *StoreItems[] = { "Store Settings ?", "No", "Yes" };
|
||||
const char *SureItems[] = { "Are you sure ?", "No", "Yes" };
|
||||
const char *BuzzerItems[] = { "Buzzer", "Disable", "Enable" };
|
||||
|
||||
const char *DefaultTempItems[] = { "Default Temp", "deg C" };
|
||||
const char *SleepTempItems[] = { "Sleep Temp", "deg C" };
|
||||
const char *BoostTempItems[] = { "Boost Temp", "deg C" };
|
||||
const char *SleepTimerItems[] = { "Sleep Timer", "Minutes" };
|
||||
const char *OffTimerItems[] = { "Off Timer", "Minutes" };
|
||||
const char *BoostTimerItems[] = { "Boost Timer", "Seconds" };
|
||||
*/
|
||||
/*
|
||||
这个可以选择进行界面美化
|
||||
const char *DeleteMessage[] = { "Warning", "You cannot", "delete your", "last tip!" };
|
||||
@@ -886,7 +858,50 @@ void TimerScreen() {
|
||||
}
|
||||
updateEEPROM();
|
||||
}
|
||||
|
||||
//英语支持
|
||||
void Print_EN(byte i) {
|
||||
switch (i) {
|
||||
case 0: arduboy.print(F("Tip")); break;
|
||||
case 1: arduboy.print(F("Temp")); break;
|
||||
case 2: arduboy.print(F("Timer")); break;
|
||||
case 3: arduboy.print(F("Control")); break;
|
||||
case 4: arduboy.print(F("Screen")); break;
|
||||
case 5: arduboy.print(F("Buzzer")); break;
|
||||
case 6: arduboy.print(F("Lang")); break;
|
||||
case 7: arduboy.print(F("About")); break;
|
||||
case 8: arduboy.print(F("Return")); break;
|
||||
case 9: arduboy.print(F("Change")); break;
|
||||
case 10: arduboy.print(F("Calibrate")); break;
|
||||
case 11: arduboy.print(F("Rename")); break;
|
||||
case 12: arduboy.print(F("Delete")); break;
|
||||
case 13: arduboy.print(F("Add")); break;
|
||||
case 14: arduboy.print(F("Save")); break;
|
||||
case 15: arduboy.print(F("Default")); break;
|
||||
case 16: arduboy.print(F("Sleep")); break;
|
||||
case 17: arduboy.print(F("Boost")); break;
|
||||
case 18: arduboy.print(F("Save")); break;
|
||||
case 19: arduboy.print(F("Sleep")); break;
|
||||
case 20: arduboy.print(F("Off")); break;
|
||||
case 21: arduboy.print(F("Boost")); break;
|
||||
case 22: arduboy.print(F("Save")); break;
|
||||
case 23: arduboy.print(F("Direct")); break;
|
||||
case 24: arduboy.print(F("PID")); break;
|
||||
case 25: arduboy.print(F("Big")); break;
|
||||
case 26: arduboy.print(F("Infos")); break;
|
||||
case 27: arduboy.print(F("OFF")); break;
|
||||
case 28: arduboy.print(F("ON")); break;
|
||||
case 29: arduboy.print(F("NO")); break;
|
||||
case 30: arduboy.print(F("YES")); break;
|
||||
case 31: arduboy.print(F("CN")); break;
|
||||
case 32: arduboy.print(F("EN")); break;
|
||||
case 33: arduboy.print(F("NO")); break;
|
||||
case 34: arduboy.print(F("OK")); break;
|
||||
case 35: arduboy.print(F("Main Screen")); break;
|
||||
case 36: arduboy.print(F("Flip")); break;
|
||||
case 37: arduboy.print(F("Save")); break;
|
||||
default: arduboy.print(F("???")); break;
|
||||
}
|
||||
}
|
||||
//菜单界面
|
||||
// menu screen
|
||||
uint8_t MenuScreen(uint8_t selected) {
|
||||
@@ -894,6 +909,7 @@ uint8_t MenuScreen(uint8_t selected) {
|
||||
uint8_t lastselected = selected;
|
||||
setRotary(0, Menu_table[MenuLevel] - 1, 1, selected);
|
||||
lastbutton = (!digitalRead(BUTTON_PIN));
|
||||
SetTextColor(1);
|
||||
do {
|
||||
selected = getRotary();
|
||||
//非线性滑动动画
|
||||
@@ -904,7 +920,12 @@ uint8_t MenuScreen(uint8_t selected) {
|
||||
//绘制图标 如果有指定的话
|
||||
for (byte i = 0; i < 5; i++) if (selected - 2 + i >= 0 && selected - 2 + i < Menu_table[MenuLevel]) arduboy.drawSlowXYBitmap(-72 + i * 56 + SlidingAnimationX, 0, Ico_table[selected - 2 + i + QueryMenuObject()], 48, 48, 1);
|
||||
|
||||
arduboy.drawSlowXYBitmap(48, 48, Txt_table[selected + QueryMenuObject()], 36, 16, 1);
|
||||
if (LANG == 0) arduboy.drawSlowXYBitmap(48, 48, Txt_table[selected + QueryMenuObject()], 36, 16, 1); else {
|
||||
arduboy.setCursor(48, 49);
|
||||
Print_EN(selected + QueryMenuObject());
|
||||
}
|
||||
|
||||
|
||||
arduboy.display();
|
||||
CheckLastButton();
|
||||
} while (digitalRead(BUTTON_PIN) || lastbutton);
|
||||
@@ -987,7 +1008,7 @@ uint16_t InputScreen() {
|
||||
void InfoScreen() {
|
||||
lastbutton = (!digitalRead(BUTTON_PIN));
|
||||
arduboy.clear();
|
||||
arduboy.drawSlowXYBitmap(32, 0, QRCode, 64, 64, 1);
|
||||
arduboy.drawSlowXYBitmap(40, 8, QRCode, 48, 48, 1);
|
||||
arduboy.display();
|
||||
do {
|
||||
CheckLastButton();
|
||||
|
Reference in New Issue
Block a user