/* Converts a 24-bit RGB color to an equivalent 16-bit RGB565 value.  */
uint16_t colorsRGB24toRGB565(uint8_t r, uint8_t g, uint8_t b)
/* Converts a 24-bit RGB color to an equivalent 16-bit RGB565 value.  */
uint16_t colorsRGB24toRGB565(uint8_t r, uint8_t g, uint8_t b)
{
  return ((r / 8) << 11) | ((g / 4) << 5) | (b / 8);
}