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:
@ -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] =
|
||||
|
10
ui/menu.h
10
ui/menu.h
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user