Switch colors from defines to consts
This commit is contained in:
parent
e168a4d5b0
commit
e7748d2878
38
colors.h
38
colors.h
|
@ -1,20 +1,20 @@
|
|||
// Color definitions
|
||||
#define DISPLAY_BLACK 0x0000 ///< 0, 0, 0
|
||||
#define DISPLAY_NAVY 0x000F ///< 0, 0, 123
|
||||
#define DISPLAY_DARKGREEN 0x03E0 ///< 0, 125, 0
|
||||
#define DISPLAY_DARKCYAN 0x03EF ///< 0, 125, 123
|
||||
#define DISPLAY_MAROON 0x7800 ///< 123, 0, 0
|
||||
#define DISPLAY_PURPLE 0x780F ///< 123, 0, 123
|
||||
#define DISPLAY_OLIVE 0x7BE0 ///< 123, 125, 0
|
||||
#define DISPLAY_LIGHTGREY 0xC618 ///< 198, 195, 198
|
||||
#define DISPLAY_DARKGREY 0x7BEF ///< 123, 125, 123
|
||||
#define DISPLAY_BLUE 0x001F ///< 0, 0, 255
|
||||
#define DISPLAY_GREEN 0x07E0 ///< 0, 255, 0
|
||||
#define DISPLAY_CYAN 0x07FF ///< 0, 255, 255
|
||||
#define DISPLAY_RED 0xF800 ///< 255, 0, 0
|
||||
#define DISPLAY_MAGENTA 0xF81F ///< 255, 0, 255
|
||||
#define DISPLAY_YELLOW 0xFFE0 ///< 255, 255, 0
|
||||
#define DISPLAY_WHITE 0xFFFF ///< 255, 255, 255
|
||||
#define DISPLAY_ORANGE 0xFD20 ///< 255, 165, 0
|
||||
#define DISPLAY_GREENYELLOW 0xAFE5 ///< 173, 255, 41
|
||||
#define DISPLAY_PINK 0xFC18 ///< 255, 130, 198
|
||||
static const uint16_t DISPLAY_BLACK = 0x0000; ///< 0, 0, 0
|
||||
static const uint16_t DISPLAY_NAVY = 0x000F; ///< 0, 0, 123
|
||||
static const uint16_t DISPLAY_DARKGREEN = 0x03E0; ///< 0, 125, 0
|
||||
static const uint16_t DISPLAY_DARKCYAN = 0x03EF; ///< 0, 125, 123
|
||||
static const uint16_t DISPLAY_MAROON = 0x7800; ///< 123, 0, 0
|
||||
static const uint16_t DISPLAY_PURPLE = 0x780F; ///< 123, 0, 123
|
||||
static const uint16_t DISPLAY_OLIVE = 0x7BE0; ///< 123, 125, 0
|
||||
static const uint16_t DISPLAY_LIGHTGREY = 0xC618; ///< 198, 195, 198
|
||||
static const uint16_t DISPLAY_DARKGREY = 0x7BEF; ///< 123, 125, 123
|
||||
static const uint16_t DISPLAY_BLUE = 0x001F; ///< 0, 0, 255
|
||||
static const uint16_t DISPLAY_GREEN = 0x07E0; ///< 0, 255, 0
|
||||
static const uint16_t DISPLAY_CYAN = 0x07FF; ///< 0, 255, 255
|
||||
static const uint16_t DISPLAY_RED = 0xF800; ///< 255, 0, 0
|
||||
static const uint16_t DISPLAY_MAGENTA = 0xF81F; ///< 255, 0, 255
|
||||
static const uint16_t DISPLAY_YELLOW = 0xFFE0; ///< 255, 255, 0
|
||||
static const uint16_t DISPLAY_WHITE = 0xFFFF; ///< 255, 255, 255
|
||||
static const uint16_t DISPLAY_ORANGE = 0xFD20; ///< 255, 165, 0
|
||||
static const uint16_t DISPLAY_GREENYELLOW = 0xAFE5; ///< 173, 255, 41
|
||||
static const uint16_t DISPLAY_PINK = 0xFC18; ///< 255, 130, 198
|
||||
|
|
Loading…
Reference in New Issue