; ***************************************************************************
; copyright   : (C) 2025 by Martin Preuss
; email       : martin@libchipcard.de
;
; ***************************************************************************
; * This file is part of the project "AqHome".                              *
; * Please see toplevel file COPYING of that project for license details.   *
; ***************************************************************************

#ifndef AQH_AVR_ILI9341_COLORS_ASM
#define AQH_AVR_ILI9341_COLORS_ASM



;   FEDCBA9876543210
; 0bRRRRRGGGGGGBBBBB

;#define DISPLAY_COLOR_FROM_RGB(r, g, b) ((r<<11) | (g<<5) | (b & 0x1f))



.equ DISPLAY_COLOR_BLACK       = 0x0000      ;    0,   0,   0
.equ DISPLAY_COLOR_NAVY        = 0x000F      ;    0,   0, 128
.equ DISPLAY_COLOR_DARKGREEN   = 0x03E0      ;    0, 128,   0
.equ DISPLAY_COLOR_DARKCYAN    = 0x03EF      ;    0, 128, 128
.equ DISPLAY_COLOR_MAROON      = 0x7800      ;  128,   0,   0
.equ DISPLAY_COLOR_PURPLE      = 0x780F      ;  128,   0, 128
.equ DISPLAY_COLOR_OLIVE       = 0x7BE0      ;  128, 128,   0
.equ DISPLAY_COLOR_LIGHTGREY   = 0xC618      ;  192, 192, 192
.equ DISPLAY_COLOR_DARKGREY    = 0x7BEF      ;  128, 128, 128
.equ DISPLAY_COLOR_BLUE        = 0x001F      ;    0,   0, 255
.equ DISPLAY_COLOR_GREEN       = 0x07E0      ;    0, 255,   0
.equ DISPLAY_COLOR_CYAN        = 0x07FF      ;    0, 255, 255
.equ DISPLAY_COLOR_RED         = 0xF800      ;  255,   0,   0
.equ DISPLAY_COLOR_MAGENTA     = 0xF81F      ;  255,   0, 255
.equ DISPLAY_COLOR_YELLOW      = 0xFFE0      ;  255, 255,   0
.equ DISPLAY_COLOR_WHITE       = 0xFFFF      ;  255, 255, 255
.equ DISPLAY_COLOR_ORANGE      = 0xFD20      ;  255, 165,   0
.equ DISPLAY_COLOR_GREENYELLOW = 0xAFE5      ;  173, 255,  47
.equ DISPLAY_COLOR_PINK        = 0xF81F



#endif
