Add Contrast feature

This commit is contained in:
Armel FAUVEAU
2024-02-03 05:50:00 +01:00
parent 4b7dd4bdde
commit e8760bda5f
9 changed files with 52 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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,

View File

@@ -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