0
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:
Wouter van Gulik 2023-10-11 08:56:24 +02:00
parent b087ed5502
commit 101297b3a0
2 changed files with 3 additions and 3 deletions

View File

@ -32,6 +32,8 @@ uint8_t g_frame_buffer[7][128];
uint8_t contrast = 31; // 0 ~ 63 uint8_t contrast = 31; // 0 ~ 63
#endif #endif
static void ST7565_WriteByte(uint8_t Value);
static inline void ST7565_LowLevelWrite(uint8_t Value) static inline void ST7565_LowLevelWrite(uint8_t Value)
{ {
/* Wait for space in the fifo */ /* Wait for space in the fifo */
@ -234,7 +236,7 @@ void ST7565_SelectColumnAndLine(const uint8_t Column, const uint8_t Line)
SPI_WaitForUndocumentedTxFifoStatusBit(); SPI_WaitForUndocumentedTxFifoStatusBit();
} }
void ST7565_WriteByte(const uint8_t Value) static void ST7565_WriteByte(uint8_t Value)
{ {
GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_ST7565_A0); GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_ST7565_A0);
ST7565_LowLevelWrite(Value); ST7565_LowLevelWrite(Value);

View File

@ -33,11 +33,9 @@ void ST7565_FillScreen(const uint8_t Value);
void ST7565_Init(const bool full); void ST7565_Init(const bool full);
void ST7565_HardwareReset(void); void ST7565_HardwareReset(void);
void ST7565_SelectColumnAndLine(const uint8_t Column, const uint8_t Line); void ST7565_SelectColumnAndLine(const uint8_t Column, const uint8_t Line);
void ST7565_WriteByte(const uint8_t Value);
#ifdef ENABLE_CONTRAST #ifdef ENABLE_CONTRAST
void ST7565_SetContrast(const uint8_t value); void ST7565_SetContrast(const uint8_t value);
uint8_t ST7565_GetContrast(void); uint8_t ST7565_GetContrast(void);
#endif #endif
#endif #endif