Skip to content

Commit f0a6c26

Browse files
fix value to valid bit only
1 parent ce3af3f commit f0a6c26

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/Arduino_GFX.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,25 @@
3333
#define RGB16TO24(c) ((((uint32_t)c & 0xF800) << 8) | ((c & 0x07E0) << 5) | ((c & 0x1F) << 3))
3434

3535
#define RGB565_BLACK RGB565(0, 0, 0)
36-
#define RGB565_NAVY RGB565(0, 0, 123)
37-
#define RGB565_DARKGREEN RGB565(0, 125, 0)
38-
#define RGB565_DARKCYAN RGB565(0, 125, 123)
39-
#define RGB565_MAROON RGB565(123, 0, 0)
40-
#define RGB565_PURPLE RGB565(123, 0, 123)
41-
#define RGB565_OLIVE RGB565(123, 125, 0)
42-
#define RGB565_LIGHTGREY RGB565(198, 195, 198)
43-
#define RGB565_DARKGREY RGB565(123, 125, 123)
36+
#define RGB565_NAVY RGB565(0, 0, 120)
37+
#define RGB565_DARKGREEN RGB565(0, 124, 0)
38+
#define RGB565_DARKCYAN RGB565(0, 124, 120)
39+
#define RGB565_MAROON RGB565(120, 0, 0)
40+
#define RGB565_PURPLE RGB565(120, 0, 120)
41+
#define RGB565_OLIVE RGB565(120, 124, 0)
42+
#define RGB565_LIGHTGREY RGB565(192, 192, 192)
43+
#define RGB565_DARKGREY RGB565(120, 120, 120)
4444
#define RGB565_BLUE RGB565(0, 0, 255)
4545
#define RGB565_GREEN RGB565(0, 255, 0)
4646
#define RGB565_CYAN RGB565(0, 255, 255)
4747
#define RGB565_RED RGB565(255, 0, 0)
4848
#define RGB565_MAGENTA RGB565(255, 0, 255)
4949
#define RGB565_YELLOW RGB565(255, 255, 0)
5050
#define RGB565_WHITE RGB565(255, 255, 255)
51-
#define RGB565_ORANGE RGB565(255, 165, 0)
52-
#define RGB565_GREENYELLOW RGB565(173, 255, 41)
53-
#define RGB565_PALERED RGB565(255, 130, 198)
54-
#define RGB565_PINK RGB565(255, 198, 198)
51+
#define RGB565_ORANGE RGB565(255, 164, 0)
52+
#define RGB565_GREENYELLOW RGB565(168, 255, 40)
53+
#define RGB565_PALERED RGB565(255, 128, 192)
54+
#define RGB565_PINK RGB565(255, 192, 192)
5555

5656
// Color definitions
5757
#ifndef DISABLE_COLOR_DEFINES

0 commit comments

Comments
 (0)