mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 06:11:24 +03:00
st7565: Make ST7565_WriteByte static aka local to file
This commit is contained in:
parent
b087ed5502
commit
101297b3a0
@ -32,6 +32,8 @@ uint8_t g_frame_buffer[7][128];
|
||||
uint8_t contrast = 31; // 0 ~ 63
|
||||
#endif
|
||||
|
||||
static void ST7565_WriteByte(uint8_t Value);
|
||||
|
||||
static inline void ST7565_LowLevelWrite(uint8_t Value)
|
||||
{
|
||||
/* Wait for space in the fifo */
|
||||
@ -234,7 +236,7 @@ void ST7565_SelectColumnAndLine(const uint8_t Column, const uint8_t Line)
|
||||
SPI_WaitForUndocumentedTxFifoStatusBit();
|
||||
}
|
||||
|
||||
void ST7565_WriteByte(const uint8_t Value)
|
||||
static void ST7565_WriteByte(uint8_t Value)
|
||||
{
|
||||
GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_ST7565_A0);
|
||||
ST7565_LowLevelWrite(Value);
|
||||
|
@ -33,11 +33,9 @@ void ST7565_FillScreen(const uint8_t Value);
|
||||
void ST7565_Init(const bool full);
|
||||
void ST7565_HardwareReset(void);
|
||||
void ST7565_SelectColumnAndLine(const uint8_t Column, const uint8_t Line);
|
||||
void ST7565_WriteByte(const uint8_t Value);
|
||||
#ifdef ENABLE_CONTRAST
|
||||
void ST7565_SetContrast(const uint8_t value);
|
||||
uint8_t ST7565_GetContrast(void);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user