Add Contrast feature
This commit is contained in:
@@ -129,6 +129,7 @@ const t_menu_item MenuList[] =
|
||||
{"SetLow", VOICE_ID_INVALID, MENU_SET_LOW },
|
||||
{"SetPtt", VOICE_ID_INVALID, MENU_SET_PTT },
|
||||
{"SetTot", VOICE_ID_INVALID, MENU_SET_TOT },
|
||||
{"SetCtr", VOICE_ID_INVALID, MENU_SET_CTR },
|
||||
#endif
|
||||
// hidden menu items from here on
|
||||
// enabled if pressing both the PTT and upper side button at power-on
|
||||
@@ -899,6 +900,12 @@ void UI_DisplayMenu(void)
|
||||
case MENU_SET_TOT:
|
||||
strcpy(String, gSubMenu_SET_TOT[gSubMenuSelection]);
|
||||
break;
|
||||
|
||||
case MENU_SET_CTR:
|
||||
sprintf(String, "%d", gSubMenuSelection);
|
||||
gSetting_set_ctr = gSubMenuSelection;
|
||||
ST7565_Contrast();
|
||||
break;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
@@ -123,6 +123,7 @@ enum
|
||||
MENU_SET_LOW,
|
||||
MENU_SET_PTT,
|
||||
MENU_SET_TOT,
|
||||
MENU_SET_CTR,
|
||||
#endif
|
||||
MENU_BATCAL, // battery voltage calibration
|
||||
MENU_F1SHRT,
|
||||
|
@@ -71,6 +71,7 @@ void UI_DisplayWelcome(void)
|
||||
UI_PrintString(WelcomeString1, 0, 127, 2, 10);
|
||||
|
||||
#ifdef ENABLE_FEAT_F4HWN
|
||||
ST7565_Contrast();
|
||||
UI_PrintStringSmallNormal(Version, 0, 128, 5);
|
||||
UI_PrintStringSmallNormal(Feat, 0, 128, 6);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user