Open 32teeth opened 9 months ago
uint16_t util_color_to_rgb565(const char *color) { int red, green, blue; sscanf(color, "%02x%02x%02x", &red, &green, &blue); return ((red & 0xF8) << 8) | ((green & 0xFC) << 3) | (blue >> 3); }
adding this to make use of taking string hex to convert to rgb565
adding this to make use of taking string hex to convert to rgb565