/* Inverts the R and B in an RGB565 color.  */
uint16_t invert565Color(uint16_t color)
/* Inverts the R and B in an RGB565 color.  */
uint16_t invert565Color(uint16_t color)
{   
  uint16_t r, g, b;   
  b = (color>>0)  & 0x1f;   
  g = (color>>5)  & 0x3f;   
  r = (color>>11) & 0x1f;   
  return( (b<<11) + (g<<5) + (r<<0) );
}