So, first one:
This will make 5-6-5 RGB for you:
uint16_t drawRGB24toRGB565(uint8_t r, uint8_t g, uint8_t <img src='/dot/public/style_emoticons/<#EMO_DIR#>/cool.png' class='bbc_emoticon' alt='B)' /> { return ((r / 8) << 11) | ((g / 4) << 5) | (b / 8); }
Found at AdaFruit Forums