add macro for building RGB565 colors
use correct doubleBuf variable