LVGL

 

LVGL


/* Display flushing */
void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
{
    uint32_t temp_x, temp_y;
    for(temp_y=area->y1; temp_y<=area->y2; temp_y++){
      for(temp_x=area->x1; temp_x<=area->x2; temp_x++){
        tft.drawPixel(temp_x, temp_y, color_p->full);
        color_p++;
      }
    }
  lv_disp_flush_ready(disp); }

 


 

1.

 

posted @ 2022-01-06 15:56  panda_w  阅读(111)  评论(0)    收藏  举报