mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2026-10-27 06:21:36 +00:00
fix color565
This commit is contained in:
1 parent
17f7f3ca50
commit
640e5a06e5
1 file changed
+1
-1
+1
-1
@@ -58,7 +58,7 @@
|
||||
*/
|
||||
/**************************************************************************/
|
||||
uint16_t Adafruit_SPITFT::color565(uint8_t red, uint8_t green, uint8_t blue) {
|
||||
return ((r & 0xF8) << 8) | ((g & 0xFC) << 3) | ((b & 0xF8) >> 3);
|
||||
return ((red & 0xF8) << 8) | ((green & 0xFC) << 3) | ((blue & 0xF8) >> 3);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user