0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 06:39:49 +03:00

Added boot-up screen menu option, boot-beeps option

This commit is contained in:
OneOfEleven
2023-09-15 06:28:45 +01:00
parent 494faf5cee
commit 2fe8cd3757
17 changed files with 94 additions and 48 deletions

View File

@ -30,7 +30,7 @@
#include "ui/menu.h"
#include "ui/ui.h"
static const char MenuList[][7] =
const char MenuList[][7] =
{
"SQL",
"Step",
@ -98,7 +98,9 @@ static const char MenuList[][7] =
"200-TX", // was "200TX"
"500-TX", // was "500TX"
"350-EN", // was "350EN"
"SCR-EN" // was "SCREN"
"SCR-EN", // was "SCREN"
"" // indicate end of list
};
#if 0
@ -224,11 +226,12 @@ static const char gSubMenu_PTT_ID[4][5] =
"BOTH",
};
static const char gSubMenu_PONMSG[3][5] =
static const char gSubMenu_PONMSG[4][5] =
{
"FULL",
"MSG",
"VOL",
"NONE"
};
static const char gSubMenu_ROGER[3][6] =

View File

@ -87,11 +87,13 @@ enum
MENU_SCREN
};
extern bool gIsInSubMenu;
extern const char MenuList[][7];
extern uint8_t gMenuCursor;
extern int8_t gMenuScrollDirection;
extern uint32_t gSubMenuSelection;
extern bool gIsInSubMenu;
extern uint8_t gMenuCursor;
extern int8_t gMenuScrollDirection;
extern uint32_t gSubMenuSelection;
void UI_DisplayMenu(void);

View File

@ -36,6 +36,11 @@ void UI_DisplayWelcome(void)
memset(gStatusLine, 0, sizeof(gStatusLine));
memset(gFrameBuffer, 0, sizeof(gFrameBuffer));
if (gEeprom.POWER_ON_DISPLAY_MODE == POWER_ON_DISPLAY_MODE_NONE)
{
ST7565_FillScreen(0xFF);
}
else
if (gEeprom.POWER_ON_DISPLAY_MODE == POWER_ON_DISPLAY_MODE_FULL_SCREEN)
{
ST7565_FillScreen(0xFF);