Mercurial > public > hwos_code
comparison src/tft.inc @ 50:ec4d8503ec45
NEW: user-selectable color schemes
author | heinrichsweikamp |
---|---|
date | Fri, 27 Sep 2013 23:45:57 +0200 |
parents | 11d4fc797f74 |
children | eb72c8865f47 |
comparison
equal
deleted
inserted
replaced
49:fe01bbaf6014 | 50:ec4d8503ec45 |
---|---|
46 extern pixel_write_col320 | 46 extern pixel_write_col320 |
47 extern half_vertical_line | 47 extern half_vertical_line |
48 extern half_horizontal_line | 48 extern half_horizontal_line |
49 extern TFT_dump_screen | 49 extern TFT_dump_screen |
50 | 50 |
51 ;----------------------------------------------------------------------------- | |
52 ; Macro to encode standard colors. | |
53 ; TODO: User preferences... Maybe. | |
54 TFT_STD_COLOR macro | |
55 setf WREG ; Default to white | |
56 call TFT_set_color | |
57 endm | |
58 | |
59 TFT_MASK_COLOR macro | |
60 movlw color_greenish ; Default to OSTC mask-green | |
61 call TFT_set_color | |
62 endm | |
63 | |
64 TFT_ATTENTION_COLOR macro | |
65 movlw color_yellow ; Default to OSTC yelow | |
66 call TFT_set_color | |
67 endm | |
68 | |
69 TFT_WARNINGS_COLOR macro | |
70 movlw color_red ; Default to OSTC red | |
71 call TFT_set_color | |
72 endm | |
73 | |
74 ;TFT_DISABLED_COLOR macro | |
75 ; movlw color_grey ; Default to OSTC grey (dark blue) | |
76 ; call TFT_set_color | |
77 ; endm | |
78 | |
79 ;============================================================================= | 51 ;============================================================================= |
80 ; Low level macros (for aa_wordprocessor and color_processor). | 52 ; Low level macros (for aa_wordprocessor and color_processor). |
81 ; | 53 ; |
82 extern TFT_CmdWrite | 54 extern TFT_CmdWrite |
83 Index_out macro low_b | 55 Index_out macro low_b |