|
1 /* u8g2_d_memory.c */ |
|
2 /* generated code, codebuild, u8g2 project */ |
|
3 |
|
4 #include "u8g2.h" |
|
5 |
|
6 uint8_t *u8g2_m_16_4_1(uint8_t *page_cnt) |
|
7 { |
|
8 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
9 *page_cnt = 1; |
|
10 return 0; |
|
11 #else |
|
12 static uint8_t buf[128]; |
|
13 *page_cnt = 1; |
|
14 return buf; |
|
15 #endif |
|
16 } |
|
17 uint8_t *u8g2_m_16_4_2(uint8_t *page_cnt) |
|
18 { |
|
19 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
20 *page_cnt = 2; |
|
21 return 0; |
|
22 #else |
|
23 static uint8_t buf[256]; |
|
24 *page_cnt = 2; |
|
25 return buf; |
|
26 #endif |
|
27 } |
|
28 uint8_t *u8g2_m_16_4_f(uint8_t *page_cnt) |
|
29 { |
|
30 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
31 *page_cnt = 4; |
|
32 return 0; |
|
33 #else |
|
34 static uint8_t buf[512]; |
|
35 *page_cnt = 4; |
|
36 return buf; |
|
37 #endif |
|
38 } |
|
39 uint8_t *u8g2_m_16_8_1(uint8_t *page_cnt) |
|
40 { |
|
41 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
42 *page_cnt = 1; |
|
43 return 0; |
|
44 #else |
|
45 static uint8_t buf[128]; |
|
46 *page_cnt = 1; |
|
47 return buf; |
|
48 #endif |
|
49 } |
|
50 uint8_t *u8g2_m_16_8_2(uint8_t *page_cnt) |
|
51 { |
|
52 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
53 *page_cnt = 2; |
|
54 return 0; |
|
55 #else |
|
56 static uint8_t buf[256]; |
|
57 *page_cnt = 2; |
|
58 return buf; |
|
59 #endif |
|
60 } |
|
61 uint8_t *u8g2_m_16_8_f(uint8_t *page_cnt) |
|
62 { |
|
63 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
64 *page_cnt = 8; |
|
65 return 0; |
|
66 #else |
|
67 static uint8_t buf[1024]; |
|
68 *page_cnt = 8; |
|
69 return buf; |
|
70 #endif |
|
71 } |
|
72 uint8_t *u8g2_m_9_5_1(uint8_t *page_cnt) |
|
73 { |
|
74 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
75 *page_cnt = 1; |
|
76 return 0; |
|
77 #else |
|
78 static uint8_t buf[72]; |
|
79 *page_cnt = 1; |
|
80 return buf; |
|
81 #endif |
|
82 } |
|
83 uint8_t *u8g2_m_9_5_2(uint8_t *page_cnt) |
|
84 { |
|
85 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
86 *page_cnt = 2; |
|
87 return 0; |
|
88 #else |
|
89 static uint8_t buf[144]; |
|
90 *page_cnt = 2; |
|
91 return buf; |
|
92 #endif |
|
93 } |
|
94 uint8_t *u8g2_m_9_5_f(uint8_t *page_cnt) |
|
95 { |
|
96 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
97 *page_cnt = 5; |
|
98 return 0; |
|
99 #else |
|
100 static uint8_t buf[360]; |
|
101 *page_cnt = 5; |
|
102 return buf; |
|
103 #endif |
|
104 } |
|
105 uint8_t *u8g2_m_8_4_1(uint8_t *page_cnt) |
|
106 { |
|
107 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
108 *page_cnt = 1; |
|
109 return 0; |
|
110 #else |
|
111 static uint8_t buf[64]; |
|
112 *page_cnt = 1; |
|
113 return buf; |
|
114 #endif |
|
115 } |
|
116 uint8_t *u8g2_m_8_4_2(uint8_t *page_cnt) |
|
117 { |
|
118 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
119 *page_cnt = 2; |
|
120 return 0; |
|
121 #else |
|
122 static uint8_t buf[128]; |
|
123 *page_cnt = 2; |
|
124 return buf; |
|
125 #endif |
|
126 } |
|
127 uint8_t *u8g2_m_8_4_f(uint8_t *page_cnt) |
|
128 { |
|
129 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
130 *page_cnt = 4; |
|
131 return 0; |
|
132 #else |
|
133 static uint8_t buf[256]; |
|
134 *page_cnt = 4; |
|
135 return buf; |
|
136 #endif |
|
137 } |
|
138 uint8_t *u8g2_m_8_16_1(uint8_t *page_cnt) |
|
139 { |
|
140 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
141 *page_cnt = 1; |
|
142 return 0; |
|
143 #else |
|
144 static uint8_t buf[64]; |
|
145 *page_cnt = 1; |
|
146 return buf; |
|
147 #endif |
|
148 } |
|
149 uint8_t *u8g2_m_8_16_2(uint8_t *page_cnt) |
|
150 { |
|
151 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
152 *page_cnt = 2; |
|
153 return 0; |
|
154 #else |
|
155 static uint8_t buf[128]; |
|
156 *page_cnt = 2; |
|
157 return buf; |
|
158 #endif |
|
159 } |
|
160 uint8_t *u8g2_m_8_16_f(uint8_t *page_cnt) |
|
161 { |
|
162 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
163 *page_cnt = 16; |
|
164 return 0; |
|
165 #else |
|
166 static uint8_t buf[1024]; |
|
167 *page_cnt = 16; |
|
168 return buf; |
|
169 #endif |
|
170 } |
|
171 uint8_t *u8g2_m_12_12_1(uint8_t *page_cnt) |
|
172 { |
|
173 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
174 *page_cnt = 1; |
|
175 return 0; |
|
176 #else |
|
177 static uint8_t buf[96]; |
|
178 *page_cnt = 1; |
|
179 return buf; |
|
180 #endif |
|
181 } |
|
182 uint8_t *u8g2_m_12_12_2(uint8_t *page_cnt) |
|
183 { |
|
184 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
185 *page_cnt = 2; |
|
186 return 0; |
|
187 #else |
|
188 static uint8_t buf[192]; |
|
189 *page_cnt = 2; |
|
190 return buf; |
|
191 #endif |
|
192 } |
|
193 uint8_t *u8g2_m_12_12_f(uint8_t *page_cnt) |
|
194 { |
|
195 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
196 *page_cnt = 12; |
|
197 return 0; |
|
198 #else |
|
199 static uint8_t buf[1152]; |
|
200 *page_cnt = 12; |
|
201 return buf; |
|
202 #endif |
|
203 } |
|
204 uint8_t *u8g2_m_16_16_1(uint8_t *page_cnt) |
|
205 { |
|
206 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
207 *page_cnt = 1; |
|
208 return 0; |
|
209 #else |
|
210 static uint8_t buf[128]; |
|
211 *page_cnt = 1; |
|
212 return buf; |
|
213 #endif |
|
214 } |
|
215 uint8_t *u8g2_m_16_16_2(uint8_t *page_cnt) |
|
216 { |
|
217 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
218 *page_cnt = 2; |
|
219 return 0; |
|
220 #else |
|
221 static uint8_t buf[256]; |
|
222 *page_cnt = 2; |
|
223 return buf; |
|
224 #endif |
|
225 } |
|
226 uint8_t *u8g2_m_16_16_f(uint8_t *page_cnt) |
|
227 { |
|
228 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
229 *page_cnt = 16; |
|
230 return 0; |
|
231 #else |
|
232 static uint8_t buf[2048]; |
|
233 *page_cnt = 16; |
|
234 return buf; |
|
235 #endif |
|
236 } |
|
237 uint8_t *u8g2_m_20_20_1(uint8_t *page_cnt) |
|
238 { |
|
239 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
240 *page_cnt = 1; |
|
241 return 0; |
|
242 #else |
|
243 static uint8_t buf[160]; |
|
244 *page_cnt = 1; |
|
245 return buf; |
|
246 #endif |
|
247 } |
|
248 uint8_t *u8g2_m_20_20_2(uint8_t *page_cnt) |
|
249 { |
|
250 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
251 *page_cnt = 2; |
|
252 return 0; |
|
253 #else |
|
254 static uint8_t buf[320]; |
|
255 *page_cnt = 2; |
|
256 return buf; |
|
257 #endif |
|
258 } |
|
259 uint8_t *u8g2_m_20_20_f(uint8_t *page_cnt) |
|
260 { |
|
261 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
262 *page_cnt = 20; |
|
263 return 0; |
|
264 #else |
|
265 static uint8_t buf[3200]; |
|
266 *page_cnt = 20; |
|
267 return buf; |
|
268 #endif |
|
269 } |
|
270 uint8_t *u8g2_m_32_8_1(uint8_t *page_cnt) |
|
271 { |
|
272 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
273 *page_cnt = 1; |
|
274 return 0; |
|
275 #else |
|
276 static uint8_t buf[256]; |
|
277 *page_cnt = 1; |
|
278 return buf; |
|
279 #endif |
|
280 } |
|
281 uint8_t *u8g2_m_32_8_2(uint8_t *page_cnt) |
|
282 { |
|
283 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
284 *page_cnt = 2; |
|
285 return 0; |
|
286 #else |
|
287 static uint8_t buf[512]; |
|
288 *page_cnt = 2; |
|
289 return buf; |
|
290 #endif |
|
291 } |
|
292 uint8_t *u8g2_m_32_8_f(uint8_t *page_cnt) |
|
293 { |
|
294 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
295 *page_cnt = 8; |
|
296 return 0; |
|
297 #else |
|
298 static uint8_t buf[2048]; |
|
299 *page_cnt = 8; |
|
300 return buf; |
|
301 #endif |
|
302 } |
|
303 uint8_t *u8g2_m_8_6_1(uint8_t *page_cnt) |
|
304 { |
|
305 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
306 *page_cnt = 1; |
|
307 return 0; |
|
308 #else |
|
309 static uint8_t buf[64]; |
|
310 *page_cnt = 1; |
|
311 return buf; |
|
312 #endif |
|
313 } |
|
314 uint8_t *u8g2_m_8_6_2(uint8_t *page_cnt) |
|
315 { |
|
316 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
317 *page_cnt = 2; |
|
318 return 0; |
|
319 #else |
|
320 static uint8_t buf[128]; |
|
321 *page_cnt = 2; |
|
322 return buf; |
|
323 #endif |
|
324 } |
|
325 uint8_t *u8g2_m_8_6_f(uint8_t *page_cnt) |
|
326 { |
|
327 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
328 *page_cnt = 6; |
|
329 return 0; |
|
330 #else |
|
331 static uint8_t buf[384]; |
|
332 *page_cnt = 6; |
|
333 return buf; |
|
334 #endif |
|
335 } |
|
336 uint8_t *u8g2_m_6_8_1(uint8_t *page_cnt) |
|
337 { |
|
338 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
339 *page_cnt = 1; |
|
340 return 0; |
|
341 #else |
|
342 static uint8_t buf[48]; |
|
343 *page_cnt = 1; |
|
344 return buf; |
|
345 #endif |
|
346 } |
|
347 uint8_t *u8g2_m_6_8_2(uint8_t *page_cnt) |
|
348 { |
|
349 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
350 *page_cnt = 2; |
|
351 return 0; |
|
352 #else |
|
353 static uint8_t buf[96]; |
|
354 *page_cnt = 2; |
|
355 return buf; |
|
356 #endif |
|
357 } |
|
358 uint8_t *u8g2_m_6_8_f(uint8_t *page_cnt) |
|
359 { |
|
360 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
361 *page_cnt = 8; |
|
362 return 0; |
|
363 #else |
|
364 static uint8_t buf[384]; |
|
365 *page_cnt = 8; |
|
366 return buf; |
|
367 #endif |
|
368 } |
|
369 uint8_t *u8g2_m_12_2_1(uint8_t *page_cnt) |
|
370 { |
|
371 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
372 *page_cnt = 1; |
|
373 return 0; |
|
374 #else |
|
375 static uint8_t buf[96]; |
|
376 *page_cnt = 1; |
|
377 return buf; |
|
378 #endif |
|
379 } |
|
380 uint8_t *u8g2_m_12_2_2(uint8_t *page_cnt) |
|
381 { |
|
382 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
383 *page_cnt = 2; |
|
384 return 0; |
|
385 #else |
|
386 static uint8_t buf[192]; |
|
387 *page_cnt = 2; |
|
388 return buf; |
|
389 #endif |
|
390 } |
|
391 uint8_t *u8g2_m_12_2_f(uint8_t *page_cnt) |
|
392 { |
|
393 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
394 *page_cnt = 2; |
|
395 return 0; |
|
396 #else |
|
397 static uint8_t buf[192]; |
|
398 *page_cnt = 2; |
|
399 return buf; |
|
400 #endif |
|
401 } |
|
402 uint8_t *u8g2_m_16_12_1(uint8_t *page_cnt) |
|
403 { |
|
404 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
405 *page_cnt = 1; |
|
406 return 0; |
|
407 #else |
|
408 static uint8_t buf[128]; |
|
409 *page_cnt = 1; |
|
410 return buf; |
|
411 #endif |
|
412 } |
|
413 uint8_t *u8g2_m_16_12_2(uint8_t *page_cnt) |
|
414 { |
|
415 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
416 *page_cnt = 2; |
|
417 return 0; |
|
418 #else |
|
419 static uint8_t buf[256]; |
|
420 *page_cnt = 2; |
|
421 return buf; |
|
422 #endif |
|
423 } |
|
424 uint8_t *u8g2_m_16_12_f(uint8_t *page_cnt) |
|
425 { |
|
426 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
427 *page_cnt = 12; |
|
428 return 0; |
|
429 #else |
|
430 static uint8_t buf[1536]; |
|
431 *page_cnt = 12; |
|
432 return buf; |
|
433 #endif |
|
434 } |
|
435 uint8_t *u8g2_m_32_4_1(uint8_t *page_cnt) |
|
436 { |
|
437 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
438 *page_cnt = 1; |
|
439 return 0; |
|
440 #else |
|
441 static uint8_t buf[256]; |
|
442 *page_cnt = 1; |
|
443 return buf; |
|
444 #endif |
|
445 } |
|
446 uint8_t *u8g2_m_32_4_2(uint8_t *page_cnt) |
|
447 { |
|
448 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
449 *page_cnt = 2; |
|
450 return 0; |
|
451 #else |
|
452 static uint8_t buf[512]; |
|
453 *page_cnt = 2; |
|
454 return buf; |
|
455 #endif |
|
456 } |
|
457 uint8_t *u8g2_m_32_4_f(uint8_t *page_cnt) |
|
458 { |
|
459 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
460 *page_cnt = 4; |
|
461 return 0; |
|
462 #else |
|
463 static uint8_t buf[1024]; |
|
464 *page_cnt = 4; |
|
465 return buf; |
|
466 #endif |
|
467 } |
|
468 uint8_t *u8g2_m_24_4_1(uint8_t *page_cnt) |
|
469 { |
|
470 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
471 *page_cnt = 1; |
|
472 return 0; |
|
473 #else |
|
474 static uint8_t buf[192]; |
|
475 *page_cnt = 1; |
|
476 return buf; |
|
477 #endif |
|
478 } |
|
479 uint8_t *u8g2_m_24_4_2(uint8_t *page_cnt) |
|
480 { |
|
481 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
482 *page_cnt = 2; |
|
483 return 0; |
|
484 #else |
|
485 static uint8_t buf[384]; |
|
486 *page_cnt = 2; |
|
487 return buf; |
|
488 #endif |
|
489 } |
|
490 uint8_t *u8g2_m_24_4_f(uint8_t *page_cnt) |
|
491 { |
|
492 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
493 *page_cnt = 4; |
|
494 return 0; |
|
495 #else |
|
496 static uint8_t buf[768]; |
|
497 *page_cnt = 4; |
|
498 return buf; |
|
499 #endif |
|
500 } |
|
501 uint8_t *u8g2_m_50_30_1(uint8_t *page_cnt) |
|
502 { |
|
503 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
504 *page_cnt = 1; |
|
505 return 0; |
|
506 #else |
|
507 static uint8_t buf[400]; |
|
508 *page_cnt = 1; |
|
509 return buf; |
|
510 #endif |
|
511 } |
|
512 uint8_t *u8g2_m_50_30_2(uint8_t *page_cnt) |
|
513 { |
|
514 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
515 *page_cnt = 2; |
|
516 return 0; |
|
517 #else |
|
518 static uint8_t buf[800]; |
|
519 *page_cnt = 2; |
|
520 return buf; |
|
521 #endif |
|
522 } |
|
523 uint8_t *u8g2_m_50_30_f(uint8_t *page_cnt) |
|
524 { |
|
525 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
526 *page_cnt = 30; |
|
527 return 0; |
|
528 #else |
|
529 static uint8_t buf[12000]; |
|
530 *page_cnt = 30; |
|
531 return buf; |
|
532 #endif |
|
533 } |
|
534 uint8_t *u8g2_m_18_21_1(uint8_t *page_cnt) |
|
535 { |
|
536 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
537 *page_cnt = 1; |
|
538 return 0; |
|
539 #else |
|
540 static uint8_t buf[144]; |
|
541 *page_cnt = 1; |
|
542 return buf; |
|
543 #endif |
|
544 } |
|
545 uint8_t *u8g2_m_18_21_2(uint8_t *page_cnt) |
|
546 { |
|
547 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
548 *page_cnt = 2; |
|
549 return 0; |
|
550 #else |
|
551 static uint8_t buf[288]; |
|
552 *page_cnt = 2; |
|
553 return buf; |
|
554 #endif |
|
555 } |
|
556 uint8_t *u8g2_m_18_21_f(uint8_t *page_cnt) |
|
557 { |
|
558 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
559 *page_cnt = 21; |
|
560 return 0; |
|
561 #else |
|
562 static uint8_t buf[3024]; |
|
563 *page_cnt = 21; |
|
564 return buf; |
|
565 #endif |
|
566 } |
|
567 uint8_t *u8g2_m_13_8_1(uint8_t *page_cnt) |
|
568 { |
|
569 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
570 *page_cnt = 1; |
|
571 return 0; |
|
572 #else |
|
573 static uint8_t buf[104]; |
|
574 *page_cnt = 1; |
|
575 return buf; |
|
576 #endif |
|
577 } |
|
578 uint8_t *u8g2_m_13_8_2(uint8_t *page_cnt) |
|
579 { |
|
580 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
581 *page_cnt = 2; |
|
582 return 0; |
|
583 #else |
|
584 static uint8_t buf[208]; |
|
585 *page_cnt = 2; |
|
586 return buf; |
|
587 #endif |
|
588 } |
|
589 uint8_t *u8g2_m_13_8_f(uint8_t *page_cnt) |
|
590 { |
|
591 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
592 *page_cnt = 8; |
|
593 return 0; |
|
594 #else |
|
595 static uint8_t buf[832]; |
|
596 *page_cnt = 8; |
|
597 return buf; |
|
598 #endif |
|
599 } |
|
600 uint8_t *u8g2_m_11_6_1(uint8_t *page_cnt) |
|
601 { |
|
602 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
603 *page_cnt = 1; |
|
604 return 0; |
|
605 #else |
|
606 static uint8_t buf[88]; |
|
607 *page_cnt = 1; |
|
608 return buf; |
|
609 #endif |
|
610 } |
|
611 uint8_t *u8g2_m_11_6_2(uint8_t *page_cnt) |
|
612 { |
|
613 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
614 *page_cnt = 2; |
|
615 return 0; |
|
616 #else |
|
617 static uint8_t buf[176]; |
|
618 *page_cnt = 2; |
|
619 return buf; |
|
620 #endif |
|
621 } |
|
622 uint8_t *u8g2_m_11_6_f(uint8_t *page_cnt) |
|
623 { |
|
624 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
625 *page_cnt = 6; |
|
626 return 0; |
|
627 #else |
|
628 static uint8_t buf[528]; |
|
629 *page_cnt = 6; |
|
630 return buf; |
|
631 #endif |
|
632 } |
|
633 uint8_t *u8g2_m_12_9_1(uint8_t *page_cnt) |
|
634 { |
|
635 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
636 *page_cnt = 1; |
|
637 return 0; |
|
638 #else |
|
639 static uint8_t buf[96]; |
|
640 *page_cnt = 1; |
|
641 return buf; |
|
642 #endif |
|
643 } |
|
644 uint8_t *u8g2_m_12_9_2(uint8_t *page_cnt) |
|
645 { |
|
646 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
647 *page_cnt = 2; |
|
648 return 0; |
|
649 #else |
|
650 static uint8_t buf[192]; |
|
651 *page_cnt = 2; |
|
652 return buf; |
|
653 #endif |
|
654 } |
|
655 uint8_t *u8g2_m_12_9_f(uint8_t *page_cnt) |
|
656 { |
|
657 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
658 *page_cnt = 9; |
|
659 return 0; |
|
660 #else |
|
661 static uint8_t buf[864]; |
|
662 *page_cnt = 9; |
|
663 return buf; |
|
664 #endif |
|
665 } |
|
666 uint8_t *u8g2_m_24_8_1(uint8_t *page_cnt) |
|
667 { |
|
668 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
669 *page_cnt = 1; |
|
670 return 0; |
|
671 #else |
|
672 static uint8_t buf[192]; |
|
673 *page_cnt = 1; |
|
674 return buf; |
|
675 #endif |
|
676 } |
|
677 uint8_t *u8g2_m_24_8_2(uint8_t *page_cnt) |
|
678 { |
|
679 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
680 *page_cnt = 2; |
|
681 return 0; |
|
682 #else |
|
683 static uint8_t buf[384]; |
|
684 *page_cnt = 2; |
|
685 return buf; |
|
686 #endif |
|
687 } |
|
688 uint8_t *u8g2_m_24_8_f(uint8_t *page_cnt) |
|
689 { |
|
690 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
691 *page_cnt = 8; |
|
692 return 0; |
|
693 #else |
|
694 static uint8_t buf[1536]; |
|
695 *page_cnt = 8; |
|
696 return buf; |
|
697 #endif |
|
698 } |
|
699 uint8_t *u8g2_m_30_8_1(uint8_t *page_cnt) |
|
700 { |
|
701 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
702 *page_cnt = 1; |
|
703 return 0; |
|
704 #else |
|
705 static uint8_t buf[240]; |
|
706 *page_cnt = 1; |
|
707 return buf; |
|
708 #endif |
|
709 } |
|
710 uint8_t *u8g2_m_30_8_2(uint8_t *page_cnt) |
|
711 { |
|
712 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
713 *page_cnt = 2; |
|
714 return 0; |
|
715 #else |
|
716 static uint8_t buf[480]; |
|
717 *page_cnt = 2; |
|
718 return buf; |
|
719 #endif |
|
720 } |
|
721 uint8_t *u8g2_m_30_8_f(uint8_t *page_cnt) |
|
722 { |
|
723 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
724 *page_cnt = 8; |
|
725 return 0; |
|
726 #else |
|
727 static uint8_t buf[1920]; |
|
728 *page_cnt = 8; |
|
729 return buf; |
|
730 #endif |
|
731 } |
|
732 uint8_t *u8g2_m_30_15_1(uint8_t *page_cnt) |
|
733 { |
|
734 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
735 *page_cnt = 1; |
|
736 return 0; |
|
737 #else |
|
738 static uint8_t buf[240]; |
|
739 *page_cnt = 1; |
|
740 return buf; |
|
741 #endif |
|
742 } |
|
743 uint8_t *u8g2_m_30_15_2(uint8_t *page_cnt) |
|
744 { |
|
745 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
746 *page_cnt = 2; |
|
747 return 0; |
|
748 #else |
|
749 static uint8_t buf[480]; |
|
750 *page_cnt = 2; |
|
751 return buf; |
|
752 #endif |
|
753 } |
|
754 uint8_t *u8g2_m_30_15_f(uint8_t *page_cnt) |
|
755 { |
|
756 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
757 *page_cnt = 15; |
|
758 return 0; |
|
759 #else |
|
760 static uint8_t buf[3600]; |
|
761 *page_cnt = 15; |
|
762 return buf; |
|
763 #endif |
|
764 } |
|
765 uint8_t *u8g2_m_30_16_1(uint8_t *page_cnt) |
|
766 { |
|
767 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
768 *page_cnt = 1; |
|
769 return 0; |
|
770 #else |
|
771 static uint8_t buf[240]; |
|
772 *page_cnt = 1; |
|
773 return buf; |
|
774 #endif |
|
775 } |
|
776 uint8_t *u8g2_m_30_16_2(uint8_t *page_cnt) |
|
777 { |
|
778 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
779 *page_cnt = 2; |
|
780 return 0; |
|
781 #else |
|
782 static uint8_t buf[480]; |
|
783 *page_cnt = 2; |
|
784 return buf; |
|
785 #endif |
|
786 } |
|
787 uint8_t *u8g2_m_30_16_f(uint8_t *page_cnt) |
|
788 { |
|
789 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
790 *page_cnt = 16; |
|
791 return 0; |
|
792 #else |
|
793 static uint8_t buf[3840]; |
|
794 *page_cnt = 16; |
|
795 return buf; |
|
796 #endif |
|
797 } |
|
798 uint8_t *u8g2_m_20_16_1(uint8_t *page_cnt) |
|
799 { |
|
800 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
801 *page_cnt = 1; |
|
802 return 0; |
|
803 #else |
|
804 static uint8_t buf[160]; |
|
805 *page_cnt = 1; |
|
806 return buf; |
|
807 #endif |
|
808 } |
|
809 uint8_t *u8g2_m_20_16_2(uint8_t *page_cnt) |
|
810 { |
|
811 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
812 *page_cnt = 2; |
|
813 return 0; |
|
814 #else |
|
815 static uint8_t buf[320]; |
|
816 *page_cnt = 2; |
|
817 return buf; |
|
818 #endif |
|
819 } |
|
820 uint8_t *u8g2_m_20_16_f(uint8_t *page_cnt) |
|
821 { |
|
822 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
823 *page_cnt = 16; |
|
824 return 0; |
|
825 #else |
|
826 static uint8_t buf[2560]; |
|
827 *page_cnt = 16; |
|
828 return buf; |
|
829 #endif |
|
830 } |
|
831 uint8_t *u8g2_m_20_13_1(uint8_t *page_cnt) |
|
832 { |
|
833 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
834 *page_cnt = 1; |
|
835 return 0; |
|
836 #else |
|
837 static uint8_t buf[160]; |
|
838 *page_cnt = 1; |
|
839 return buf; |
|
840 #endif |
|
841 } |
|
842 uint8_t *u8g2_m_20_13_2(uint8_t *page_cnt) |
|
843 { |
|
844 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
845 *page_cnt = 2; |
|
846 return 0; |
|
847 #else |
|
848 static uint8_t buf[320]; |
|
849 *page_cnt = 2; |
|
850 return buf; |
|
851 #endif |
|
852 } |
|
853 uint8_t *u8g2_m_20_13_f(uint8_t *page_cnt) |
|
854 { |
|
855 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
856 *page_cnt = 13; |
|
857 return 0; |
|
858 #else |
|
859 static uint8_t buf[2080]; |
|
860 *page_cnt = 13; |
|
861 return buf; |
|
862 #endif |
|
863 } |
|
864 uint8_t *u8g2_m_30_20_1(uint8_t *page_cnt) |
|
865 { |
|
866 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
867 *page_cnt = 1; |
|
868 return 0; |
|
869 #else |
|
870 static uint8_t buf[240]; |
|
871 *page_cnt = 1; |
|
872 return buf; |
|
873 #endif |
|
874 } |
|
875 uint8_t *u8g2_m_30_20_2(uint8_t *page_cnt) |
|
876 { |
|
877 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
878 *page_cnt = 2; |
|
879 return 0; |
|
880 #else |
|
881 static uint8_t buf[480]; |
|
882 *page_cnt = 2; |
|
883 return buf; |
|
884 #endif |
|
885 } |
|
886 uint8_t *u8g2_m_30_20_f(uint8_t *page_cnt) |
|
887 { |
|
888 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
889 *page_cnt = 20; |
|
890 return 0; |
|
891 #else |
|
892 static uint8_t buf[4800]; |
|
893 *page_cnt = 20; |
|
894 return buf; |
|
895 #endif |
|
896 } |
|
897 uint8_t *u8g2_m_40_30_1(uint8_t *page_cnt) |
|
898 { |
|
899 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
900 *page_cnt = 1; |
|
901 return 0; |
|
902 #else |
|
903 static uint8_t buf[320]; |
|
904 *page_cnt = 1; |
|
905 return buf; |
|
906 #endif |
|
907 } |
|
908 uint8_t *u8g2_m_40_30_2(uint8_t *page_cnt) |
|
909 { |
|
910 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
911 *page_cnt = 2; |
|
912 return 0; |
|
913 #else |
|
914 static uint8_t buf[640]; |
|
915 *page_cnt = 2; |
|
916 return buf; |
|
917 #endif |
|
918 } |
|
919 uint8_t *u8g2_m_40_30_f(uint8_t *page_cnt) |
|
920 { |
|
921 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
922 *page_cnt = 30; |
|
923 return 0; |
|
924 #else |
|
925 static uint8_t buf[9600]; |
|
926 *page_cnt = 30; |
|
927 return buf; |
|
928 #endif |
|
929 } |
|
930 uint8_t *u8g2_m_17_4_1(uint8_t *page_cnt) |
|
931 { |
|
932 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
933 *page_cnt = 1; |
|
934 return 0; |
|
935 #else |
|
936 static uint8_t buf[136]; |
|
937 *page_cnt = 1; |
|
938 return buf; |
|
939 #endif |
|
940 } |
|
941 uint8_t *u8g2_m_17_4_2(uint8_t *page_cnt) |
|
942 { |
|
943 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
944 *page_cnt = 2; |
|
945 return 0; |
|
946 #else |
|
947 static uint8_t buf[272]; |
|
948 *page_cnt = 2; |
|
949 return buf; |
|
950 #endif |
|
951 } |
|
952 uint8_t *u8g2_m_17_4_f(uint8_t *page_cnt) |
|
953 { |
|
954 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
955 *page_cnt = 4; |
|
956 return 0; |
|
957 #else |
|
958 static uint8_t buf[544]; |
|
959 *page_cnt = 4; |
|
960 return buf; |
|
961 #endif |
|
962 } |
|
963 uint8_t *u8g2_m_17_8_1(uint8_t *page_cnt) |
|
964 { |
|
965 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
966 *page_cnt = 1; |
|
967 return 0; |
|
968 #else |
|
969 static uint8_t buf[136]; |
|
970 *page_cnt = 1; |
|
971 return buf; |
|
972 #endif |
|
973 } |
|
974 uint8_t *u8g2_m_17_8_2(uint8_t *page_cnt) |
|
975 { |
|
976 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
977 *page_cnt = 2; |
|
978 return 0; |
|
979 #else |
|
980 static uint8_t buf[272]; |
|
981 *page_cnt = 2; |
|
982 return buf; |
|
983 #endif |
|
984 } |
|
985 uint8_t *u8g2_m_17_8_f(uint8_t *page_cnt) |
|
986 { |
|
987 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
988 *page_cnt = 8; |
|
989 return 0; |
|
990 #else |
|
991 static uint8_t buf[1088]; |
|
992 *page_cnt = 8; |
|
993 return buf; |
|
994 #endif |
|
995 } |
|
996 uint8_t *u8g2_m_48_17_1(uint8_t *page_cnt) |
|
997 { |
|
998 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
999 *page_cnt = 1; |
|
1000 return 0; |
|
1001 #else |
|
1002 static uint8_t buf[384]; |
|
1003 *page_cnt = 1; |
|
1004 return buf; |
|
1005 #endif |
|
1006 } |
|
1007 uint8_t *u8g2_m_48_17_2(uint8_t *page_cnt) |
|
1008 { |
|
1009 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1010 *page_cnt = 2; |
|
1011 return 0; |
|
1012 #else |
|
1013 static uint8_t buf[768]; |
|
1014 *page_cnt = 2; |
|
1015 return buf; |
|
1016 #endif |
|
1017 } |
|
1018 uint8_t *u8g2_m_48_17_f(uint8_t *page_cnt) |
|
1019 { |
|
1020 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1021 *page_cnt = 17; |
|
1022 return 0; |
|
1023 #else |
|
1024 static uint8_t buf[6528]; |
|
1025 *page_cnt = 17; |
|
1026 return buf; |
|
1027 #endif |
|
1028 } |
|
1029 uint8_t *u8g2_m_32_16_1(uint8_t *page_cnt) |
|
1030 { |
|
1031 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1032 *page_cnt = 1; |
|
1033 return 0; |
|
1034 #else |
|
1035 static uint8_t buf[256]; |
|
1036 *page_cnt = 1; |
|
1037 return buf; |
|
1038 #endif |
|
1039 } |
|
1040 uint8_t *u8g2_m_32_16_2(uint8_t *page_cnt) |
|
1041 { |
|
1042 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1043 *page_cnt = 2; |
|
1044 return 0; |
|
1045 #else |
|
1046 static uint8_t buf[512]; |
|
1047 *page_cnt = 2; |
|
1048 return buf; |
|
1049 #endif |
|
1050 } |
|
1051 uint8_t *u8g2_m_32_16_f(uint8_t *page_cnt) |
|
1052 { |
|
1053 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1054 *page_cnt = 16; |
|
1055 return 0; |
|
1056 #else |
|
1057 static uint8_t buf[4096]; |
|
1058 *page_cnt = 16; |
|
1059 return buf; |
|
1060 #endif |
|
1061 } |
|
1062 uint8_t *u8g2_m_32_20_1(uint8_t *page_cnt) |
|
1063 { |
|
1064 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1065 *page_cnt = 1; |
|
1066 return 0; |
|
1067 #else |
|
1068 static uint8_t buf[256]; |
|
1069 *page_cnt = 1; |
|
1070 return buf; |
|
1071 #endif |
|
1072 } |
|
1073 uint8_t *u8g2_m_32_20_2(uint8_t *page_cnt) |
|
1074 { |
|
1075 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1076 *page_cnt = 2; |
|
1077 return 0; |
|
1078 #else |
|
1079 static uint8_t buf[512]; |
|
1080 *page_cnt = 2; |
|
1081 return buf; |
|
1082 #endif |
|
1083 } |
|
1084 uint8_t *u8g2_m_32_20_f(uint8_t *page_cnt) |
|
1085 { |
|
1086 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1087 *page_cnt = 20; |
|
1088 return 0; |
|
1089 #else |
|
1090 static uint8_t buf[5120]; |
|
1091 *page_cnt = 20; |
|
1092 return buf; |
|
1093 #endif |
|
1094 } |
|
1095 uint8_t *u8g2_m_22_13_1(uint8_t *page_cnt) |
|
1096 { |
|
1097 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1098 *page_cnt = 1; |
|
1099 return 0; |
|
1100 #else |
|
1101 static uint8_t buf[176]; |
|
1102 *page_cnt = 1; |
|
1103 return buf; |
|
1104 #endif |
|
1105 } |
|
1106 uint8_t *u8g2_m_22_13_2(uint8_t *page_cnt) |
|
1107 { |
|
1108 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1109 *page_cnt = 2; |
|
1110 return 0; |
|
1111 #else |
|
1112 static uint8_t buf[352]; |
|
1113 *page_cnt = 2; |
|
1114 return buf; |
|
1115 #endif |
|
1116 } |
|
1117 uint8_t *u8g2_m_22_13_f(uint8_t *page_cnt) |
|
1118 { |
|
1119 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1120 *page_cnt = 13; |
|
1121 return 0; |
|
1122 #else |
|
1123 static uint8_t buf[2288]; |
|
1124 *page_cnt = 13; |
|
1125 return buf; |
|
1126 #endif |
|
1127 } |
|
1128 uint8_t *u8g2_m_24_12_1(uint8_t *page_cnt) |
|
1129 { |
|
1130 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1131 *page_cnt = 1; |
|
1132 return 0; |
|
1133 #else |
|
1134 static uint8_t buf[192]; |
|
1135 *page_cnt = 1; |
|
1136 return buf; |
|
1137 #endif |
|
1138 } |
|
1139 uint8_t *u8g2_m_24_12_2(uint8_t *page_cnt) |
|
1140 { |
|
1141 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1142 *page_cnt = 2; |
|
1143 return 0; |
|
1144 #else |
|
1145 static uint8_t buf[384]; |
|
1146 *page_cnt = 2; |
|
1147 return buf; |
|
1148 #endif |
|
1149 } |
|
1150 uint8_t *u8g2_m_24_12_f(uint8_t *page_cnt) |
|
1151 { |
|
1152 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1153 *page_cnt = 12; |
|
1154 return 0; |
|
1155 #else |
|
1156 static uint8_t buf[2304]; |
|
1157 *page_cnt = 12; |
|
1158 return buf; |
|
1159 #endif |
|
1160 } |
|
1161 uint8_t *u8g2_m_20_10_1(uint8_t *page_cnt) |
|
1162 { |
|
1163 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1164 *page_cnt = 1; |
|
1165 return 0; |
|
1166 #else |
|
1167 static uint8_t buf[160]; |
|
1168 *page_cnt = 1; |
|
1169 return buf; |
|
1170 #endif |
|
1171 } |
|
1172 uint8_t *u8g2_m_20_10_2(uint8_t *page_cnt) |
|
1173 { |
|
1174 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1175 *page_cnt = 2; |
|
1176 return 0; |
|
1177 #else |
|
1178 static uint8_t buf[320]; |
|
1179 *page_cnt = 2; |
|
1180 return buf; |
|
1181 #endif |
|
1182 } |
|
1183 uint8_t *u8g2_m_20_10_f(uint8_t *page_cnt) |
|
1184 { |
|
1185 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1186 *page_cnt = 10; |
|
1187 return 0; |
|
1188 #else |
|
1189 static uint8_t buf[1600]; |
|
1190 *page_cnt = 10; |
|
1191 return buf; |
|
1192 #endif |
|
1193 } |
|
1194 uint8_t *u8g2_m_22_9_1(uint8_t *page_cnt) |
|
1195 { |
|
1196 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1197 *page_cnt = 1; |
|
1198 return 0; |
|
1199 #else |
|
1200 static uint8_t buf[176]; |
|
1201 *page_cnt = 1; |
|
1202 return buf; |
|
1203 #endif |
|
1204 } |
|
1205 uint8_t *u8g2_m_22_9_2(uint8_t *page_cnt) |
|
1206 { |
|
1207 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1208 *page_cnt = 2; |
|
1209 return 0; |
|
1210 #else |
|
1211 static uint8_t buf[352]; |
|
1212 *page_cnt = 2; |
|
1213 return buf; |
|
1214 #endif |
|
1215 } |
|
1216 uint8_t *u8g2_m_22_9_f(uint8_t *page_cnt) |
|
1217 { |
|
1218 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1219 *page_cnt = 9; |
|
1220 return 0; |
|
1221 #else |
|
1222 static uint8_t buf[1584]; |
|
1223 *page_cnt = 9; |
|
1224 return buf; |
|
1225 #endif |
|
1226 } |
|
1227 uint8_t *u8g2_m_25_25_1(uint8_t *page_cnt) |
|
1228 { |
|
1229 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1230 *page_cnt = 1; |
|
1231 return 0; |
|
1232 #else |
|
1233 static uint8_t buf[200]; |
|
1234 *page_cnt = 1; |
|
1235 return buf; |
|
1236 #endif |
|
1237 } |
|
1238 uint8_t *u8g2_m_25_25_2(uint8_t *page_cnt) |
|
1239 { |
|
1240 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1241 *page_cnt = 2; |
|
1242 return 0; |
|
1243 #else |
|
1244 static uint8_t buf[400]; |
|
1245 *page_cnt = 2; |
|
1246 return buf; |
|
1247 #endif |
|
1248 } |
|
1249 uint8_t *u8g2_m_25_25_f(uint8_t *page_cnt) |
|
1250 { |
|
1251 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1252 *page_cnt = 25; |
|
1253 return 0; |
|
1254 #else |
|
1255 static uint8_t buf[5000]; |
|
1256 *page_cnt = 25; |
|
1257 return buf; |
|
1258 #endif |
|
1259 } |
|
1260 uint8_t *u8g2_m_37_16_1(uint8_t *page_cnt) |
|
1261 { |
|
1262 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1263 *page_cnt = 1; |
|
1264 return 0; |
|
1265 #else |
|
1266 static uint8_t buf[296]; |
|
1267 *page_cnt = 1; |
|
1268 return buf; |
|
1269 #endif |
|
1270 } |
|
1271 uint8_t *u8g2_m_37_16_2(uint8_t *page_cnt) |
|
1272 { |
|
1273 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1274 *page_cnt = 2; |
|
1275 return 0; |
|
1276 #else |
|
1277 static uint8_t buf[592]; |
|
1278 *page_cnt = 2; |
|
1279 return buf; |
|
1280 #endif |
|
1281 } |
|
1282 uint8_t *u8g2_m_37_16_f(uint8_t *page_cnt) |
|
1283 { |
|
1284 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1285 *page_cnt = 16; |
|
1286 return 0; |
|
1287 #else |
|
1288 static uint8_t buf[4736]; |
|
1289 *page_cnt = 16; |
|
1290 return buf; |
|
1291 #endif |
|
1292 } |
|
1293 uint8_t *u8g2_m_8_1_1(uint8_t *page_cnt) |
|
1294 { |
|
1295 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1296 *page_cnt = 1; |
|
1297 return 0; |
|
1298 #else |
|
1299 static uint8_t buf[64]; |
|
1300 *page_cnt = 1; |
|
1301 return buf; |
|
1302 #endif |
|
1303 } |
|
1304 uint8_t *u8g2_m_8_1_2(uint8_t *page_cnt) |
|
1305 { |
|
1306 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1307 *page_cnt = 2; |
|
1308 return 0; |
|
1309 #else |
|
1310 static uint8_t buf[128]; |
|
1311 *page_cnt = 2; |
|
1312 return buf; |
|
1313 #endif |
|
1314 } |
|
1315 uint8_t *u8g2_m_8_1_f(uint8_t *page_cnt) |
|
1316 { |
|
1317 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1318 *page_cnt = 1; |
|
1319 return 0; |
|
1320 #else |
|
1321 static uint8_t buf[64]; |
|
1322 *page_cnt = 1; |
|
1323 return buf; |
|
1324 #endif |
|
1325 } |
|
1326 uint8_t *u8g2_m_4_1_1(uint8_t *page_cnt) |
|
1327 { |
|
1328 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1329 *page_cnt = 1; |
|
1330 return 0; |
|
1331 #else |
|
1332 static uint8_t buf[32]; |
|
1333 *page_cnt = 1; |
|
1334 return buf; |
|
1335 #endif |
|
1336 } |
|
1337 uint8_t *u8g2_m_4_1_2(uint8_t *page_cnt) |
|
1338 { |
|
1339 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1340 *page_cnt = 2; |
|
1341 return 0; |
|
1342 #else |
|
1343 static uint8_t buf[64]; |
|
1344 *page_cnt = 2; |
|
1345 return buf; |
|
1346 #endif |
|
1347 } |
|
1348 uint8_t *u8g2_m_4_1_f(uint8_t *page_cnt) |
|
1349 { |
|
1350 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1351 *page_cnt = 1; |
|
1352 return 0; |
|
1353 #else |
|
1354 static uint8_t buf[32]; |
|
1355 *page_cnt = 1; |
|
1356 return buf; |
|
1357 #endif |
|
1358 } |
|
1359 uint8_t *u8g2_m_1_1_1(uint8_t *page_cnt) |
|
1360 { |
|
1361 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1362 *page_cnt = 1; |
|
1363 return 0; |
|
1364 #else |
|
1365 static uint8_t buf[8]; |
|
1366 *page_cnt = 1; |
|
1367 return buf; |
|
1368 #endif |
|
1369 } |
|
1370 uint8_t *u8g2_m_1_1_2(uint8_t *page_cnt) |
|
1371 { |
|
1372 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1373 *page_cnt = 2; |
|
1374 return 0; |
|
1375 #else |
|
1376 static uint8_t buf[16]; |
|
1377 *page_cnt = 2; |
|
1378 return buf; |
|
1379 #endif |
|
1380 } |
|
1381 uint8_t *u8g2_m_1_1_f(uint8_t *page_cnt) |
|
1382 { |
|
1383 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1384 *page_cnt = 1; |
|
1385 return 0; |
|
1386 #else |
|
1387 static uint8_t buf[8]; |
|
1388 *page_cnt = 1; |
|
1389 return buf; |
|
1390 #endif |
|
1391 } |
|
1392 uint8_t *u8g2_m_48_30_1(uint8_t *page_cnt) |
|
1393 { |
|
1394 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1395 *page_cnt = 1; |
|
1396 return 0; |
|
1397 #else |
|
1398 static uint8_t buf[384]; |
|
1399 *page_cnt = 1; |
|
1400 return buf; |
|
1401 #endif |
|
1402 } |
|
1403 uint8_t *u8g2_m_48_30_2(uint8_t *page_cnt) |
|
1404 { |
|
1405 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1406 *page_cnt = 2; |
|
1407 return 0; |
|
1408 #else |
|
1409 static uint8_t buf[768]; |
|
1410 *page_cnt = 2; |
|
1411 return buf; |
|
1412 #endif |
|
1413 } |
|
1414 uint8_t *u8g2_m_48_30_f(uint8_t *page_cnt) |
|
1415 { |
|
1416 #ifdef U8G2_USE_DYNAMIC_ALLOC |
|
1417 *page_cnt = 30; |
|
1418 return 0; |
|
1419 #else |
|
1420 static uint8_t buf[11520]; |
|
1421 *page_cnt = 30; |
|
1422 return buf; |
|
1423 #endif |
|
1424 } |
|
1425 /* end of generated code */ |