diff --git a/driver/st7565.c b/driver/st7565.c index f9a8645..35f8681 100644 --- a/driver/st7565.c +++ b/driver/st7565.c @@ -187,7 +187,7 @@ void ST7565_Init(void) } #ifdef ENABLE_FEAT_F4HWN - void ST7565_Contrast(void) + void ST7565_ContrastAndInv(void) { SPI_ToggleMasterMode(&SPI0->CR, false); ST7565_WriteByte(ST7565_CMD_SOFTWARE_RESET); // software reset diff --git a/driver/st7565.h b/driver/st7565.h index d29c2bd..b5ec79c 100644 --- a/driver/st7565.h +++ b/driver/st7565.h @@ -39,7 +39,7 @@ void ST7565_SelectColumnAndLine(uint8_t Column, uint8_t Line); void ST7565_WriteByte(uint8_t Value); #ifdef ENABLE_FEAT_F4HWN - void ST7565_Contrast(void); + void ST7565_ContrastAndInv(void); #endif #endif diff --git a/ui/menu.c b/ui/menu.c index c284db8..b105768 100644 --- a/ui/menu.c +++ b/ui/menu.c @@ -910,12 +910,12 @@ void UI_DisplayMenu(void) case MENU_SET_CTR: sprintf(String, "%d", gSubMenuSelection); gSetting_set_ctr = gSubMenuSelection; - ST7565_Contrast(); + ST7565_ContrastAndInv(); break; case MENU_SET_INV: strcpy(String, gSubMenu_OFF_ON[gSubMenuSelection]); - ST7565_Contrast(); + ST7565_ContrastAndInv(); break; #endif diff --git a/ui/welcome.c b/ui/welcome.c index 8426980..8e939fa 100644 --- a/ui/welcome.c +++ b/ui/welcome.c @@ -71,7 +71,7 @@ void UI_DisplayWelcome(void) UI_PrintString(WelcomeString1, 0, 127, 2, 10); #ifdef ENABLE_FEAT_F4HWN - ST7565_Contrast(); + ST7565_ContrastAndInv(); UI_PrintStringSmallNormal(Version, 0, 128, 5); UI_PrintStringSmallNormal(Feat, 0, 128, 6); #else