How to clear a specific area of the screen

How to clear the screen area specified by lv_area_t

Hi @Jermaine_Lu , thanks you to send a message.

If you are working directly with a draw buffer (lv_draw_buf_t), use:

lv_draw_buf_clear(lv_draw_buf_t *draw_buf, const lv_area_t *a);

Example:

lv_area_t area = {10, 20, 100, 80}; // x1, y1, x2, y2 lv_draw_buf_clear(my_draw_buf, &area);

This zeroes out the pixels in the specified area and also flushes the cache for that region