The buffer passed by the disp_flush function is not aligned with 4 bytes. My DMA can only send multiples of 4. How can I get aligned with 4 bytes?
thanks…
I found this function and tried to modify it, and found that the original graph is deformed. Do you see my code right? My screen resolution is 240*240
void my_rounder_cb(lv_disp_drv_t * disp_drv, lv_area_t * area)
{
if((area->x2-area->x1 +1 )%2==1)
{
if(area->x2 <239)
{
area->x2 = area->x2 +1;
}
else if(area->x1 > 0)
{
area->x1 = area->x1 -1;
}
}
else if((area->y2-area->y1 +1 )%2==1)
{
if(area->y2 <239)
{
area->y2 = area->y2 +1;
}
else if(area->y1 > 0)
{
area->y1 = area->y1 -1;
}
}
}