drewler/arduino-SSD1675A

Missing pixelcount++ on redImage

cimba007 opened this issue · 1 comments

pixel_count = 0;
for(col = 0; col < 296; col++){
for(row = 0; row < 16; row++){
SPI4W_WRITEDATA(pgm_read_byte_near(&img1_red[pixel_count]));
pixel_count++;
}
}
I modified the two images to be located in FLASH and not in RAM.
This way the code works on an Atmega328p

Der Sketch verwendet 12356 Bytes (40%) des Programmspeicherplatzes. Das Maximum sind 30720 Bytes.
Globale Variablen verwenden 271 Bytes (13%) des dynamischen Speichers, 1777 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.

eink.zip

Thanks for reporting the issue! Also, storing the images in flash is a great idea.

I will test your code and then merge the modifications.