Created
October 10, 2017 14:07
-
-
Save colesnicov/3d9ac74fed7c86186e45c55bbaf4171d to your computer and use it in GitHub Desktop.
Convert grb color to adafruit_gfx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
short ConvertRGB(byte R, byte G, byte B) { | |
return (((R & 0xF8) << 8) | ((G & 0xFC) << 3) | (B >> 3)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment