diff --git a/ssd1306.c b/ssd1306.c --- a/ssd1306.c +++ b/ssd1306.c @@ -26,8 +26,7 @@ #define SSD1303_Buffer (_SSD1303_Buffer + SSD1303_COLUMN_MARGIN_START) /* Private variables ---------------------------------------------------------*/ -static uint8_t _SSD1303_Buffer[SSD1303_COLUMN_NUMBER*SSD1303_PAGE_NUMBER -+ SSD1303_COLUMN_MARGIN_START + SSD1303_COLUMN_MARGIN_END] = {0}; +static uint8_t _SSD1303_Buffer[SSD1303_COLUMN_NUMBER*SSD1303_PAGE_NUMBER + SSD1303_COLUMN_MARGIN_START + SSD1303_COLUMN_MARGIN_END] = {0}; static uint8_t pageIndex = 0; static uint8_t iS_SSD_On = 0; static uint8_t pre_on = 0; @@ -81,6 +80,10 @@ void WriteData(unsigned char data) *******************************************************************************/ void SSD1303_Init(void) { + + /* Initialize SPI2 */ + // TODO + /* Generate a reset */ SSD_Reset_Low(); uint32_t i ;