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.

相关