mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-15 14:54:40 +00:00
增加开机画面
This commit is contained in:
parent
8d1562d384
commit
ecdc504ff8
3 changed files with 43 additions and 43 deletions
2
main.c
2
main.c
|
@ -140,7 +140,7 @@ void Main(void)
|
|||
// }
|
||||
// else
|
||||
// {
|
||||
//UI_DisplayWelcome();
|
||||
UI_DisplayWelcome();
|
||||
|
||||
|
||||
// if (gEeprom.POWER_ON_DISPLAY_MODE != POWER_ON_DISPLAY_MODE_NONE)
|
||||
|
|
82
ui/welcome.c
82
ui/welcome.c
|
@ -42,44 +42,44 @@
|
|||
//
|
||||
//}
|
||||
|
||||
//void UI_DisplayWelcome(void) {
|
||||
// BACKLIGHT_TurnOn();
|
||||
//
|
||||
// char WelcomeString0[16]={0};
|
||||
// char WelcomeString1[16]={0};
|
||||
//
|
||||
// memset(gStatusLine, 0, sizeof(gStatusLine));
|
||||
// memset(gFrameBuffer, 0, sizeof(gFrameBuffer));
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//#
|
||||
//
|
||||
// EEPROM_ReadBuffer(0x0EB0, WelcomeString0, 16);
|
||||
// EEPROM_ReadBuffer(0x0EC0, WelcomeString1, 16);
|
||||
//
|
||||
//
|
||||
// UI_PrintStringSmall(WelcomeString0, 0, 127, 0);
|
||||
// UI_PrintStringSmall(WelcomeString1, 0, 127, 2);
|
||||
// sprintf(WelcomeString1, "%u.%02uV %u%%",
|
||||
// gBatteryVoltageAverage / 100,
|
||||
// gBatteryVoltageAverage % 100,
|
||||
// BATTERY_VoltsToPercent(gBatteryVoltageAverage));
|
||||
// UI_PrintStringSmall(WelcomeString1, 0, 127, 4);
|
||||
//
|
||||
// UI_PrintStringSmall(Version, 0, 127, 6);
|
||||
//
|
||||
// ST7565_BlitStatusLine(); // blank status line
|
||||
// ST7565_BlitFullScreen();
|
||||
// unsigned char i=250;
|
||||
// while (i--) {
|
||||
// if (KEYBOARD_Poll() == KEY_EXIT)
|
||||
// break;
|
||||
// SYSTEM_DelayMs(10);
|
||||
//
|
||||
//
|
||||
// }
|
||||
//
|
||||
//}
|
||||
//
|
||||
void UI_DisplayWelcome(void) {
|
||||
BACKLIGHT_TurnOn();
|
||||
|
||||
char WelcomeString0[16]={0};
|
||||
char WelcomeString1[16]={0};
|
||||
|
||||
memset(gStatusLine, 0, sizeof(gStatusLine));
|
||||
memset(gFrameBuffer, 0, sizeof(gFrameBuffer));
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
|
||||
EEPROM_ReadBuffer(0x0EB0, WelcomeString0, 16);
|
||||
EEPROM_ReadBuffer(0x0EC0, WelcomeString1, 16);
|
||||
|
||||
|
||||
UI_PrintStringSmall(WelcomeString0, 0, 127, 0);
|
||||
UI_PrintStringSmall(WelcomeString1, 0, 127, 2);
|
||||
sprintf(WelcomeString1, "%u.%02uV %u%%",
|
||||
gBatteryVoltageAverage / 100,
|
||||
gBatteryVoltageAverage % 100,
|
||||
BATTERY_VoltsToPercent(gBatteryVoltageAverage));
|
||||
UI_PrintStringSmall(WelcomeString1, 0, 127, 4);
|
||||
|
||||
UI_PrintStringSmall(Version, 0, 127, 6);
|
||||
|
||||
ST7565_BlitStatusLine(); // blank status line
|
||||
ST7565_BlitFullScreen();
|
||||
unsigned char i=250;
|
||||
while (i--) {
|
||||
if (KEYBOARD_Poll() == KEY_EXIT)
|
||||
break;
|
||||
SYSTEM_DelayMs(10);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#define UI_WELCOME_H
|
||||
#include "helper/boot.h"
|
||||
//void UI_DisplayReleaseKeys(BOOT_Mode_t BootMode);
|
||||
//void UI_DisplayWelcome(void);
|
||||
void UI_DisplayWelcome(void);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue