diff --git a/driver/st7565.c b/driver/st7565.c index 2aa7cf0..ccdce14 100644 --- a/driver/st7565.c +++ b/driver/st7565.c @@ -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); diff --git a/driver/st7565.h b/driver/st7565.h index 467bce8..38de4cb 100644 --- a/driver/st7565.h +++ b/driver/st7565.h @@ -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