lv_display_set_resolution() function
Sets the resolution of a display. `LV_EVENT_RESOLUTION_CHANGED` event will be sent. Here the native resolution of the device should be set. If the display will be rotated later with `lv_display_set_rotation` LVGL will swap the hor. and ver. resolution automatically.
Arguments
hor_res
the new horizontal resolution
ver_res
the new vertical resolution