diff --git a/Src/ssd1306.c b/Src/ssd1306.c index 4ceaea6..81be1c6 100644 --- a/Src/ssd1306.c +++ b/Src/ssd1306.c @@ -58,11 +58,7 @@ void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1) } void ssd1306_LoadImage(void) { - static uint32_t end_addr = SSD1306_WIDTH * 8; - - for(uint32_t addr = 0; addr < end_addr; addr++) { - SSD1306_Buffer[addr] = image[addr]; - } + memcpy(SSD1306_Buffer, image, 1024); } /**