lv_array_erase() function
Remove from the array either a single element or a range of elements ([start, end)).
Arguments
array
pointer to an `lv_array_t` variable
start
the index of the first element to be removed
end
the index of the first element that is not to be removed
Return value
LV_RESULT_OK: success, otherwise: error
Notes
This effectively reduces the container size by the number of elements removed. When start equals to end, the function has no effect.