1
0
Fork 0

Usar memcpy

This commit is contained in:
Pedro de Oliveira 2017-03-24 02:09:56 +00:00
parent e1f05a916a
commit 7b732396e7
1 changed files with 1 additions and 5 deletions

View File

@ -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);
}
/**