forked from mirror/uv-k5-firmware
Rename ST7565_Configure_GPIO_B11 to ST7565_HardwareReset. (#59)
Co-authored-by: Wouter van Gulik <wouter.van.gulik@mep-info.com>
This commit is contained in:
parent
8e1cf5e501
commit
c79781ae47
@ -1209,7 +1209,7 @@ void APP_TimeSlice500ms(void)
|
||||
AUDIO_PlaySingleVoice(true);
|
||||
gReducedService = true;
|
||||
FUNCTION_Select(FUNCTION_POWER_SAVE);
|
||||
ST7565_Configure_GPIO_B11();
|
||||
ST7565_HardwareReset();
|
||||
GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_BACKLIGHT);
|
||||
} else {
|
||||
AUDIO_PlaySingleVoice(false);
|
||||
|
@ -114,7 +114,7 @@ void ST7565_FillScreen(uint8_t Value)
|
||||
void ST7565_Init(void)
|
||||
{
|
||||
SPI0_Init();
|
||||
ST7565_Configure_GPIO_B11();
|
||||
ST7565_HardwareReset();
|
||||
SPI_ToggleMasterMode(&SPI0->CR, false);
|
||||
ST7565_WriteByte(0xE2);
|
||||
SYSTEM_DelayMs(0x78);
|
||||
@ -142,7 +142,7 @@ void ST7565_Init(void)
|
||||
ST7565_FillScreen(0x00);
|
||||
}
|
||||
|
||||
void ST7565_Configure_GPIO_B11(void)
|
||||
void ST7565_HardwareReset(void)
|
||||
{
|
||||
GPIO_SetBit(&GPIOB->DATA, GPIOB_PIN_ST7565_RES);
|
||||
SYSTEM_DelayMs(1);
|
||||
|
@ -28,7 +28,7 @@ void ST7565_BlitFullScreen(void);
|
||||
void ST7565_BlitStatusLine(void);
|
||||
void ST7565_FillScreen(uint8_t Value);
|
||||
void ST7565_Init(void);
|
||||
void ST7565_Configure_GPIO_B11(void);
|
||||
void ST7565_HardwareReset(void);
|
||||
void ST7565_SelectColumnAndLine(uint8_t Column, uint8_t Line);
|
||||
void ST7565_WriteByte(uint8_t Value);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user