u8g2_d_memory.c 25 KB

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