/* Converts a 16-bit RGB565 color to a standard 32-bit BGRA32 color (with alpha set to 0xFF)  */
uint32_t colorsRGB565toBGRA32(uint16_t color)
/* Converts a 16-bit RGB565 color to a standard 32-bit BGRA32 color (with alpha set to 0xFF)  */
uint32_t colorsRGB565toBGRA32(uint16_t color)
{
  uint32_t bits = (uint32_t)color;
  uint32_t blue = bits & 0x001F;
  uint32_t green = bits & 0x07E0;
  uint32_t red = bits & 0xF800;
  return (red << 8) | (green << 5) | (blue << 3) | 0xFF000000;
}