Mercurial > public > hwos_code
comparison src/colorschemes.inc @ 634:4050675965ea
3.10 stable release
author | heinrichsweikamp |
---|---|
date | Tue, 28 Apr 2020 17:34:31 +0200 |
parents | c40025d8e750 |
children |
comparison
equal
deleted
inserted
replaced
633:690c48db7b5b | 634:4050675965ea |
---|---|
1 ;============================================================================= | 1 ;============================================================================= |
2 ; | 2 ; |
3 ; File colorschemes.inc combined next generation V3.0.1 | 3 ; File colorschemes.inc * combined next generation V3.09.5 |
4 ; | 4 ; |
5 ;============================================================================= | 5 ;============================================================================= |
6 | 6 |
7 ; Dive mode | |
8 | 7 |
9 ; Standard | 8 ;----------------------------------------------------------------------------- |
10 #DEFINE color_scheme_divemode_mask1 color_green | 9 ; Font Color Selection - fixed Colors |
11 #DEFINE color_scheme_divemode_std1 color_white | |
12 #DEFINE color_scheme_divemode_dis1 color_lightblue ; color_grey | |
13 | 10 |
14 ; redish | 11 FONT_COLOR_STANDARD macro |
15 #DEFINE color_scheme_divemode_mask2 color_red | 12 setf font_color ; full white |
16 #DEFINE color_scheme_divemode_std2 color_orange | 13 endm |
17 #DEFINE color_scheme_divemode_dis2 color_dark_red | |
18 | 14 |
19 ; greenish | 15 FONT_COLOR macro font_color_input |
20 #DEFINE color_scheme_divemode_mask3 color_cyan | 16 movlw font_color_input ; 8 bit color |
21 #DEFINE color_scheme_divemode_std3 color_green | 17 movwf font_color |
22 #DEFINE color_scheme_divemode_dis3 color_dark_green | 18 endm |
23 | 19 |
24 ; blueish | 20 |
25 #DEFINE color_scheme_divemode_mask4 color_blue | 21 ;----------------------------------------------------------------------------- |
26 #DEFINE color_scheme_divemode_std4 color_lightblue | 22 ; 8 Bit fixed Color Definitions |
27 #DEFINE color_scheme_divemode_dis4 color_deepblue | 23 ; |
24 ; b'RRRGGGBB' | |
25 ; ----------- | |
26 #DEFINE color_red b'11100000' ; (7,0,0) | |
27 #DEFINE color_dark_red b'10000101' ; (4,1,1) | |
28 #DEFINE color_violet b'11101011' ; (7,2,3) | |
29 #DEFINE color_blue b'11000111' ; (6,1,3) | |
30 #DEFINE color_green b'00011100' ; (0,7,0) | |
31 #DEFINE color_greenish b'00111110' ; (1,7,2) | |
32 #DEFINE color_dark_green b'00111001' ; (1,6,1) | |
33 #DEFINE color_yellow b'11111101' ; (7,7,1) | |
34 #DEFINE color_white b'11111111' ; (7,7,3) | |
35 #DEFINE color_black b'00000000' ; (0,0,0) | |
36 #DEFINE color_deepblue b'00000010' ; (0,0,2) | |
37 #DEFINE color_grey b'11011111' ; (6,7,3) | |
38 #DEFINE color_cyan b'11011111' ; (6,7,3) | |
39 #DEFINE color_lightblue b'11011011' ; (6,7,3) | |
40 #DEFINE color_orange b'11111000' ; (7,6,0) | |
41 #DEFINE color_pink b'11111010' ; (7,6,2) | |
42 | |
43 | |
44 ;----------------------------------------------------------------------------- | |
45 ; Font Color Selection - pallet-based Colors | |
46 | |
47 ; the use of pallet-based colors requires the prior call of | |
48 ; | |
49 ; - TFT_load_std_color_pallet to load the standard color pallet, or | |
50 ; - TFT_load_dive_color_pallet to load the dive color pallet | |
51 ; | |
52 ; Attention: the following macros must resolve to single commands! | |
53 | |
54 | |
55 FONT_COLOR_MASK macro ; labels and fixed items | |
56 movff pallet_color_mask,font_color | |
57 endm | |
58 | |
59 FONT_COLOR_DISABLED macro ; disabled & outdated items | |
60 movff pallet_color_disabled,font_color | |
61 endm | |
62 | |
63 FONT_COLOR_MEMO macro ; information & values within normal range, | |
64 movff pallet_color_memo,font_color ; things without a need to react upon | |
65 endm | |
66 | |
67 FONT_COLOR_ADVICE macro ; advices to do something, but without | |
68 movff pallet_color_advice,font_color ; essential need to actually do it | |
69 endm | |
70 | |
71 FONT_COLOR_ATTENTION macro ; important things to be aware of and | |
72 movff pallet_color_attention,font_color ; that develop towards a warning | |
73 endm | |
74 | |
75 FONT_COLOR_WARNING macro ; important things with immediate | |
76 movff pallet_color_warning,font_color ; need to react upon | |
77 endm | |
78 | |
79 | |
80 ;----------------------------------------------------------------------------- | |
81 ; 8 Bit Pallet Color Definitions | |
82 ; | |
83 ; => see 'pallet_table' in tft_outputs.asm | |
84 ; | |
85 | |
86 ;----------------------------------------------------------------------------- |