I have referred to the example code provided by Good Display, which uses the old display data when implementing partial refresh.
for(i=0;i<PART_COLUMN*PART_LINE/8;i++)
EPD_W21_WriteDATA(oldDataA[i]);
EPD_W21_WriteCMD(0x13); //writes New data to SRAM.
for(i=0;i<PART_COLUMN*PART_LINE/8;i++)
{
EPD_W21_WriteDATA(pgm_read_byte(&datas_A[i]));
oldDataA[i]=pgm_read_byte(&datas_A[i]);
}
EPD_Update();
I am not sure how to implement this in epd-waveshare. Should we add the input parameter for the old data to the update_partial_frame function?
I have referred to the example code provided by Good Display, which uses the old display data when implementing partial refresh.
I am not sure how to implement this in
epd-waveshare
. Should we add the input parameter for the old data to theupdate_partial_frame
function?