ezLCD+103 Driver  0.1
Driver code for the ezLCD+103
 All Files Functions Typedefs Enumerations Groups Pages
ezLCD_103_user_config.h
Go to the documentation of this file.
1 
14 /* Used to prevent multiple header file inclusion */
15 #ifndef EZLCD_USER_CONFIG_H
16 #define EZLCD_USER_CONFIG_H
17 
18 /*----------------------------------------------------------------------------*/
19 /* Includes */
20 /*----------------------------------------------------------------------------*/
22 #include <iom128.h>
23 
24 
25 /*----------------------------------------------------------------------------*/
26 /* PORT CONFIG */
27 /*----------------------------------------------------------------------------*/
29 #define EZLCD_POWER_PORT PORTB
30 
31 #define EZLCD_POWER_PIN 4
32 
33 /*----------------------------------------------------------------------------*/
34 /* SPI Settings */
35 /*----------------------------------------------------------------------------*/
37 #define EZLCD_SPI_PORT PORTB
38 
39 #define EZLCD_SS_BAR_PIN 0
40 
41 #define EZLCD_SCK_PIN 1
42 
43 #define EZLCD_MOSI_PIN 2
44 
45 #define EZLCD_MISO_PIN 3
46 
47 
49 #define EZLCD_SPIF_BIT 7
50 
52 #define EZLCD_SPSR SPSR
53 
54 #define EZLCD_SPR2X 0
55 
56 
58 #define EZLCD_SPDR SPDR
59 
61 #define EZLCD_SPCR SPCR
62 
63 #define EZLCD_SPIE 7
64 
65 #define EZLCD_SPE 6
66 
67 #define EZLCD_DORD 5
68 
69 #define EZLCD_MSTR 4
70 
71 #define EZLCD_CPOL 3
72 
73 #define EZLCD_CPHA 2
74 
75 #define EZLCD_SPR1 1
76 
77 #define EZLCD_SPR0 0
78 
79 
80 /*----------------------------------------------------------------------------*/
81 /* BITMAP FONT INDICES */
82 /*----------------------------------------------------------------------------*/
83 #define ARIAL_14_INXEX 0
84 #define ARIAL_14_B_INDEX 1
85 #define TIMES_NEW_ROMAN_34_B_INDEX 2
86 #define FORTE_26_INDEX 3
87 #define SCRIPT_MT_BOLD_29_B_INDEX 4
88 #define ISO_6X10_INDEX 5
89 #define ISO_8X13_INDEX 6
90 
91 /*----------------------------------------------------------------------------*/
92 /* TRUE TYPE FONT INDICES */
93 /*----------------------------------------------------------------------------*/
94 #define DEJAVUSANS 0
95 #define DEJAVUSANS-BOLD 1
96 #define DEJAVUSANS-BOLDOBLIQUE 2
97 #define DEJAVUSERIF 3
98 #define DEJAVUSERIF-BOLD 4
99 #define DEJAVUSERIF-ITALIC 5
100 #define QUIG 6
101 #define WALTOGRAPH 7
102 
103 /*----------------------------------------------------------------------------*/
104 /* BITMAP IMAGE INDICES */
105 /*----------------------------------------------------------------------------*/
106 /* The following list contains the indices of each image on the display ROM */
107 #define SPASH_SCREEN_INDEX 0
108 #define BACKGROUND_1_INDEX 1
109 
110 /* Buttons */
111 #define ZERO_BUTTON_EZLCD_BUTTON_UP_INDEX 2
112 #define ZERO_BUTTON_EZLCD_BUTTON_DOWN_INDEX 3
113 #define ZERO_BUTTON_DISABLED_INDEX 4
114 
115 #define ONE_BUTTON_EZLCD_BUTTON_UP_INDEX 5
116 #define ONE_BUTTON_EZLCD_BUTTON_DOWN_INDEX 6
117 #define ONE_BUTTON_DISABLED_INDEX 7
118 
119 #define TWO_BUTTON_EZLCD_BUTTON_UP_INDEX 8
120 #define TWO_BUTTON_EZLCD_BUTTON_DOWN_INDEX 9
121 #define TWO_BUTTON_DISABLED_INDEX 10
122 
123 #define THREE_BUTTON_EZLCD_BUTTON_UP_INDEX 11
124 #define THREE_BUTTON_EZLCD_BUTTON_DOWN_INDEX 12
125 #define THREE_BUTTON_DISABLED_INDEX 13
126 
127 #define FOUR_BUTTON_EZLCD_BUTTON_UP_INDEX 14
128 #define FOUR_BUTTON_EZLCD_BUTTON_DOWN_INDEX 15
129 #define FOUR_BUTTON_DISABLED_INDEX 16
130 
131 #define FIVE_BUTTON_EZLCD_BUTTON_UP_INDEX 17
132 #define FIVE_BUTTON_EZLCD_BUTTON_DOWN_INDEX 18
133 #define FIVE_BUTTON_DISABLED_INDEX 19
134 
135 #define SIX_BUTTON_EZLCD_BUTTON_UP_INDEX 20
136 #define SIX_BUTTON_EZLCD_BUTTON_DOWN_INDEX 21
137 #define SIX_BUTTON_DISABLED_INDEX 22
138 
139 #define SEVEN_BUTTON_EZLCD_BUTTON_UP_INDEX 23
140 #define SEVEN_BUTTON_EZLCD_BUTTON_DOWN_INDEX 24
141 #define SEVEN_BUTTON_DISABLED_INDEX 25
142 
143 #define EIGHT_BUTTON_EZLCD_BUTTON_UP_INDEX 26
144 #define EIGHT_BUTTON_EZLCD_BUTTON_DOWN_INDEX 27
145 #define EIGHT_BUTTON_DISABLED_INDEX 28
146 
147 #define NINE_BUTTON_EZLCD_BUTTON_UP_INDEX 29
148 #define NINE_BUTTON_EZLCD_BUTTON_DOWN_INDEX 30
149 #define NINE_BUTTON_DISABLED_INDEX 31
150 
151 #define STAR_BUTTON_EZLCD_BUTTON_UP_INDEX 32
152 #define STAR_BUTTON_EZLCD_BUTTON_DOWN_INDEX 33
153 #define STAR_BUTTON_DISABLED_INDEX 34
154 
155 #define POUND_BUTTON_EZLCD_BUTTON_UP_INDEX 35
156 #define POUND_BUTTON_EZLCD_BUTTON_DOWN_INDEX 36
157 #define POUND_BUTTON_DISABLED_INDEX 37
158 
159 #define START_BUTTON_EZLCD_BUTTON_UP_INDEX 38
160 #define START_BUTTON_EZLCD_BUTTON_DOWN_INDEX 39
161 #define START_BUTTON_DISABLED_INDEX 40
162 
163 #define STOP_BUTTON_EZLCD_BUTTON_UP_INDEX 41
164 #define STOP_BUTTON_EZLCD_BUTTON_DOWN_INDEX 42
165 #define STOP_BUTTON_DISABLED_INDEX 43
166 
167 #define BACK_BUTTON_EZLCD_BUTTON_UP_INDEX 44
168 #define BACK_BUTTON_EZLCD_BUTTON_DOWN_INDEX 45
169 #define BACK_BUTTON_DISABLED_INDEX 46
170 
171 #define NEXT_BUTTON_EZLCD_BUTTON_UP_INDEX 47
172 #define NEXT_BUTTON_EZLCD_BUTTON_DOWN_INDEX 48
173 #define NEXT_BUTTON_DISABLED_INDEX 49
174 
175 #define CONTINUE_BUTTON_EZLCD_BUTTON_UP_INDEX 50
176 #define CONTINUE_BUTTON_EZLCD_BUTTON_DOWN_INDEX 51
177 #define CONTINUE_BUTTON_DISABLED_INDEX 52
178 
179 #define CALIBRATE_BUTTON_EZLCD_BUTTON_UP_INDEX 53
180 #define CALIBRATE_BUTTON_EZLCD_BUTTON_DOWN_INDEX 54
181 #define CALIBRATE_BUTTON_DISABLED_INDEX 55
182 
183 #define SETTINGS_BUTTON_EZLCD_BUTTON_UP_INDEX 56
184 #define SETTINGS_BUTTON_EZLCD_BUTTON_DOWN_INDEX 57
185 #define SETTINGS_BUTTON_DISABLED_INDEX 58
186 
187 
188 
189 /*----------------------------------------------------------------------------*/
190 /* BITMAP SIZES */
191 /*----------------------------------------------------------------------------*/
192 /* The following list contains the sizes of all the bitmap images on the display
193  * ROM
194  */
195 
196 #define SPASH_SCREEN_WIDTH 320
197 #define SPASH_SCREEN_HEIGHT 240
198 
199 #define BACKGROUND_1_WIDTH 320
200 #define BACKGROUND_1_HEIGHT 240
201 
202 /* Buttons */
203 #define ZERO_BUTTON_WIDTH 50
204 #define ZERO_BUTTON_HEIGHT 35
205 
206 #define ONE_BUTTON_WIDTH 50
207 #define ONE_BUTTON_HEIGHT 35
208 
209 #define TWO_BUTTON_WIDTH 50
210 #define TWO_BUTTON_HEIGHT 35
211 
212 #define THREE_BUTTON_WIDTH 50
213 #define THREE_BUTTON_HEIGHT 35
214 
215 #define FOUR_BUTTON_WIDTH 50
216 #define FOUR_BUTTON_HEIGHT 35
217 
218 #define FIVE_BUTTON_WIDTH 50
219 #define FIVE_BUTTON_HEIGHT 35
220 
221 #define SIX_BUTTON_WIDTH 50
222 #define SIX_BUTTON_HEIGHT 35
223 
224 #define SEVEN_BUTTON_WIDTH 50
225 #define SEVEN_BUTTON_HEIGHT 35
226 
227 #define EIGHT_BUTTON_WIDTH 50
228 #define EIGHT_BUTTON_HEIGHT 35
229 
230 #define NINE_BUTTON_WIDTH 50
231 #define NINE_BUTTON_HEIGHT 35
232 
233 #define STAR_BUTTON_WIDTH 100
234 #define STAR_BUTTON_HEIGHT 50
235 
236 #define POUND_BUTTON_WIDTH 100
237 #define POUND_BUTTON_HEIGHT 50
238 
239 #define START_BUTTON_WIDTH 100
240 #define START_BUTTON_HEIGHT 50
241 
242 #define STOP_BUTTON_WIDTH 100
243 #define STOP_BUTTON_HEIGHT 50
244 
245 #define BACK_BUTTON_WIDTH 100
246 #define BACK_BUTTON_HEIGHT 50
247 
248 #define NEXT_BUTTON_WIDTH 100
249 #define NEXT_BUTTON_HEIGHT 50
250 
251 #define CONTINUE_BUTTON_WIDTH 100
252 #define CONTINUE_BUTTON_HEIGHT 50
253 
254 #define CALIBRATE_BUTTON_WIDTH 100
255 #define CALIBRATE_BUTTON_HEIGHT 50
256 
257 #define SETTINGS_BUTTON_WIDTH 100
258 #define SETTINGS_BUTTON_HEIGHT 50
259 
260 
261 
262 #endif /* EZLCD_USER_CONFIG_H */ /* ezLCD_103_user_config */