lv_draw_sw_rgb565_swap() function
Swap the upper and lower byte of an RGB565 buffer. Might be required if a 8bit parallel port or an SPI port send the bytes in the wrong order. The bytes will be swapped in place.
Arguments
buf_size_px
number of pixels in the buffer