convert to 565 seperately from saving
save png image
save to csv file
make unwrap.py executable and add shebang
rgb not bgr output. bitwise or
swap endianess
use bgr888 to rgb565 conversion

opencv appears to open images in bgr not rgb
don't swap byte order. works for fpga block ram input