lv_line_set_y_invert() function
Enable (or disable) the y coordinate inversion. If enabled then y will be subtracted from the height of the object, therefore the y = 0 coordinate will be on the bottom.
Arguments
obj
pointer to a line object
en
true: enable the y inversion, false:disable the y inversion