annotate src/colorschemes.inc @ 637:cdff88f5a4a0

Battery menu for OSTC plus
author heinrichsweikamp
date Sun, 17 May 2020 09:34:18 +0200
parents 4050675965ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
50
ec4d8503ec45 NEW: user-selectable color schemes
heinrichsweikamp
parents:
diff changeset
1 ;=============================================================================
ec4d8503ec45 NEW: user-selectable color schemes
heinrichsweikamp
parents:
diff changeset
2 ;
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
3 ; File colorschemes.inc * combined next generation V3.09.5
50
ec4d8503ec45 NEW: user-selectable color schemes
heinrichsweikamp
parents:
diff changeset
4 ;
ec4d8503ec45 NEW: user-selectable color schemes
heinrichsweikamp
parents:
diff changeset
5 ;=============================================================================
ec4d8503ec45 NEW: user-selectable color schemes
heinrichsweikamp
parents:
diff changeset
6
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
7
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
8 ;-----------------------------------------------------------------------------
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
9 ; Font Color Selection - fixed Colors
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
10
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
11 FONT_COLOR_STANDARD macro
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
12 setf font_color ; full white
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
13 endm
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
14
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
15 FONT_COLOR macro font_color_input
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
16 movlw font_color_input ; 8 bit color
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
17 movwf font_color
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
18 endm
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
19
623
c40025d8e750 3.03 beta released
heinrichsweikamp
parents: 608
diff changeset
20
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
21 ;-----------------------------------------------------------------------------
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
22 ; 8 Bit fixed Color Definitions
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
23 ;
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
24 ; b'RRRGGGBB'
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
25 ; -----------
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
26 #DEFINE color_red b'11100000' ; (7,0,0)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
27 #DEFINE color_dark_red b'10000101' ; (4,1,1)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
28 #DEFINE color_violet b'11101011' ; (7,2,3)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
29 #DEFINE color_blue b'11000111' ; (6,1,3)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
30 #DEFINE color_green b'00011100' ; (0,7,0)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
31 #DEFINE color_greenish b'00111110' ; (1,7,2)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
32 #DEFINE color_dark_green b'00111001' ; (1,6,1)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
33 #DEFINE color_yellow b'11111101' ; (7,7,1)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
34 #DEFINE color_white b'11111111' ; (7,7,3)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
35 #DEFINE color_black b'00000000' ; (0,0,0)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
36 #DEFINE color_deepblue b'00000010' ; (0,0,2)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
37 #DEFINE color_grey b'11011111' ; (6,7,3)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
38 #DEFINE color_cyan b'11011111' ; (6,7,3)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
39 #DEFINE color_lightblue b'11011011' ; (6,7,3)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
40 #DEFINE color_orange b'11111000' ; (7,6,0)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
41 #DEFINE color_pink b'11111010' ; (7,6,2)
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
42
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
43
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
44 ;-----------------------------------------------------------------------------
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
45 ; Font Color Selection - pallet-based Colors
50
ec4d8503ec45 NEW: user-selectable color schemes
heinrichsweikamp
parents:
diff changeset
46
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
47 ; the use of pallet-based colors requires the prior call of
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
48 ;
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
49 ; - TFT_load_std_color_pallet to load the standard color pallet, or
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
50 ; - TFT_load_dive_color_pallet to load the dive color pallet
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
51 ;
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
52 ; Attention: the following macros must resolve to single commands!
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
53
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
54
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
55 FONT_COLOR_MASK macro ; labels and fixed items
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
56 movff pallet_color_mask,font_color
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
57 endm
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
58
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
59 FONT_COLOR_DISABLED macro ; disabled & outdated items
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
60 movff pallet_color_disabled,font_color
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
61 endm
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
62
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
63 FONT_COLOR_MEMO macro ; information & values within normal range,
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
64 movff pallet_color_memo,font_color ; things without a need to react upon
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
65 endm
50
ec4d8503ec45 NEW: user-selectable color schemes
heinrichsweikamp
parents:
diff changeset
66
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
67 FONT_COLOR_ADVICE macro ; advices to do something, but without
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
68 movff pallet_color_advice,font_color ; essential need to actually do it
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
69 endm
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
70
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
71 FONT_COLOR_ATTENTION macro ; important things to be aware of and
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
72 movff pallet_color_attention,font_color ; that develop towards a warning
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
73 endm
50
ec4d8503ec45 NEW: user-selectable color schemes
heinrichsweikamp
parents:
diff changeset
74
634
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
75 FONT_COLOR_WARNING macro ; important things with immediate
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
76 movff pallet_color_warning,font_color ; need to react upon
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
77 endm
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
78
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
79
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
80 ;-----------------------------------------------------------------------------
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
81 ; 8 Bit Pallet Color Definitions
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
82 ;
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
83 ; => see 'pallet_table' in tft_outputs.asm
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
84 ;
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
85
4050675965ea 3.10 stable release
heinrichsweikamp
parents: 623
diff changeset
86 ;-----------------------------------------------------------------------------