u8g2_d_memory.c 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999
  1. /* u8g2_d_memory.c */
  2. /* generated code, codebuild, u8g2 project */
  3. #include "u8g2.h"
  4. #ifdef U8G2_USE_ONE_STATIC_BUFF
  5. static uint8_t buf[1024 * 2];
  6. #endif // U8G2_USE_ONE_STATIC_BUFF
  7. uint8_t *u8g2_m_16_4_1(uint8_t *page_cnt)
  8. {
  9. #ifdef U8G2_USE_DYNAMIC_ALLOC
  10. *page_cnt = 1;
  11. return 0;
  12. #else
  13. #ifndef U8G2_USE_ONE_STATIC_BUFF
  14. static uint8_t buf[128];
  15. #endif // !U8G2_USE_ONE_STATIC_BUFF
  16. *page_cnt = 1;
  17. return buf;
  18. #endif
  19. }
  20. uint8_t *u8g2_m_16_4_2(uint8_t *page_cnt)
  21. {
  22. #ifdef U8G2_USE_DYNAMIC_ALLOC
  23. *page_cnt = 2;
  24. return 0;
  25. #else
  26. #ifndef U8G2_USE_ONE_STATIC_BUFF
  27. static uint8_t buf[256];
  28. #endif // !U8G2_USE_ONE_STATIC_BUFF
  29. *page_cnt = 2;
  30. return buf;
  31. #endif
  32. }
  33. uint8_t *u8g2_m_16_4_f(uint8_t *page_cnt)
  34. {
  35. #ifdef U8G2_USE_DYNAMIC_ALLOC
  36. *page_cnt = 4;
  37. return 0;
  38. #else
  39. #ifndef U8G2_USE_ONE_STATIC_BUFF
  40. static uint8_t buf[512];
  41. #endif // !U8G2_USE_ONE_STATIC_BUFF
  42. *page_cnt = 4;
  43. return buf;
  44. #endif
  45. }
  46. uint8_t *u8g2_m_16_8_1(uint8_t *page_cnt)
  47. {
  48. #ifdef U8G2_USE_DYNAMIC_ALLOC
  49. *page_cnt = 1;
  50. return 0;
  51. #else
  52. #ifndef U8G2_USE_ONE_STATIC_BUFF
  53. static uint8_t buf[128];
  54. #endif // !U8G2_USE_ONE_STATIC_BUFF
  55. *page_cnt = 1;
  56. return buf;
  57. #endif
  58. }
  59. uint8_t *u8g2_m_16_8_2(uint8_t *page_cnt)
  60. {
  61. #ifdef U8G2_USE_DYNAMIC_ALLOC
  62. *page_cnt = 2;
  63. return 0;
  64. #else
  65. #ifndef U8G2_USE_ONE_STATIC_BUFF
  66. static uint8_t buf[256];
  67. #endif // !U8G2_USE_ONE_STATIC_BUFF
  68. *page_cnt = 2;
  69. return buf;
  70. #endif
  71. }
  72. uint8_t *u8g2_m_16_8_f(uint8_t *page_cnt)
  73. {
  74. #ifdef U8G2_USE_DYNAMIC_ALLOC
  75. *page_cnt = 8;
  76. return 0;
  77. #else
  78. #ifndef U8G2_USE_ONE_STATIC_BUFF
  79. static uint8_t buf[1024];
  80. #endif // !U8G2_USE_ONE_STATIC_BUFF
  81. *page_cnt = 8;
  82. return buf;
  83. #endif
  84. }
  85. uint8_t *u8g2_m_255_2_1(uint8_t *page_cnt)
  86. {
  87. #ifdef U8G2_USE_DYNAMIC_ALLOC
  88. *page_cnt = 1;
  89. return 0;
  90. #else
  91. #ifndef U8G2_USE_ONE_STATIC_BUFF
  92. static uint8_t buf[2040];
  93. #endif // !U8G2_USE_ONE_STATIC_BUFF
  94. *page_cnt = 1;
  95. return buf;
  96. #endif
  97. }
  98. uint8_t *u8g2_m_255_2_2(uint8_t *page_cnt)
  99. {
  100. #ifdef U8G2_USE_DYNAMIC_ALLOC
  101. *page_cnt = 2;
  102. return 0;
  103. #else
  104. #ifndef U8G2_USE_ONE_STATIC_BUFF
  105. static uint8_t buf[4080];
  106. #endif // !U8G2_USE_ONE_STATIC_BUFF
  107. *page_cnt = 2;
  108. return buf;
  109. #endif
  110. }
  111. uint8_t *u8g2_m_255_2_f(uint8_t *page_cnt)
  112. {
  113. #ifdef U8G2_USE_DYNAMIC_ALLOC
  114. *page_cnt = 2;
  115. return 0;
  116. #else
  117. #ifndef U8G2_USE_ONE_STATIC_BUFF
  118. static uint8_t buf[4080];
  119. #endif // !U8G2_USE_ONE_STATIC_BUFF
  120. *page_cnt = 2;
  121. return buf;
  122. #endif
  123. }
  124. uint8_t *u8g2_m_9_5_1(uint8_t *page_cnt)
  125. {
  126. #ifdef U8G2_USE_DYNAMIC_ALLOC
  127. *page_cnt = 1;
  128. return 0;
  129. #else
  130. #ifndef U8G2_USE_ONE_STATIC_BUFF
  131. static uint8_t buf[72];
  132. #endif // !U8G2_USE_ONE_STATIC_BUFF
  133. *page_cnt = 1;
  134. return buf;
  135. #endif
  136. }
  137. uint8_t *u8g2_m_9_5_2(uint8_t *page_cnt)
  138. {
  139. #ifdef U8G2_USE_DYNAMIC_ALLOC
  140. *page_cnt = 2;
  141. return 0;
  142. #else
  143. #ifndef U8G2_USE_ONE_STATIC_BUFF
  144. static uint8_t buf[144];
  145. #endif // !U8G2_USE_ONE_STATIC_BUFF
  146. *page_cnt = 2;
  147. return buf;
  148. #endif
  149. }
  150. uint8_t *u8g2_m_9_5_f(uint8_t *page_cnt)
  151. {
  152. #ifdef U8G2_USE_DYNAMIC_ALLOC
  153. *page_cnt = 5;
  154. return 0;
  155. #else
  156. #ifndef U8G2_USE_ONE_STATIC_BUFF
  157. static uint8_t buf[360];
  158. #endif // !U8G2_USE_ONE_STATIC_BUFF
  159. *page_cnt = 5;
  160. return buf;
  161. #endif
  162. }
  163. uint8_t *u8g2_m_8_4_1(uint8_t *page_cnt)
  164. {
  165. #ifdef U8G2_USE_DYNAMIC_ALLOC
  166. *page_cnt = 1;
  167. return 0;
  168. #else
  169. #ifndef U8G2_USE_ONE_STATIC_BUFF
  170. static uint8_t buf[64];
  171. #endif // !U8G2_USE_ONE_STATIC_BUFF
  172. *page_cnt = 1;
  173. return buf;
  174. #endif
  175. }
  176. uint8_t *u8g2_m_8_4_2(uint8_t *page_cnt)
  177. {
  178. #ifdef U8G2_USE_DYNAMIC_ALLOC
  179. *page_cnt = 2;
  180. return 0;
  181. #else
  182. #ifndef U8G2_USE_ONE_STATIC_BUFF
  183. static uint8_t buf[128];
  184. #endif // !U8G2_USE_ONE_STATIC_BUFF
  185. *page_cnt = 2;
  186. return buf;
  187. #endif
  188. }
  189. uint8_t *u8g2_m_8_4_f(uint8_t *page_cnt)
  190. {
  191. #ifdef U8G2_USE_DYNAMIC_ALLOC
  192. *page_cnt = 4;
  193. return 0;
  194. #else
  195. #ifndef U8G2_USE_ONE_STATIC_BUFF
  196. static uint8_t buf[256];
  197. #endif // !U8G2_USE_ONE_STATIC_BUFF
  198. *page_cnt = 4;
  199. return buf;
  200. #endif
  201. }
  202. uint8_t *u8g2_m_8_16_1(uint8_t *page_cnt)
  203. {
  204. #ifdef U8G2_USE_DYNAMIC_ALLOC
  205. *page_cnt = 1;
  206. return 0;
  207. #else
  208. #ifndef U8G2_USE_ONE_STATIC_BUFF
  209. static uint8_t buf[64];
  210. #endif // !U8G2_USE_ONE_STATIC_BUFF
  211. *page_cnt = 1;
  212. return buf;
  213. #endif
  214. }
  215. uint8_t *u8g2_m_8_16_2(uint8_t *page_cnt)
  216. {
  217. #ifdef U8G2_USE_DYNAMIC_ALLOC
  218. *page_cnt = 2;
  219. return 0;
  220. #else
  221. #ifndef U8G2_USE_ONE_STATIC_BUFF
  222. static uint8_t buf[128];
  223. #endif // !U8G2_USE_ONE_STATIC_BUFF
  224. *page_cnt = 2;
  225. return buf;
  226. #endif
  227. }
  228. uint8_t *u8g2_m_8_16_f(uint8_t *page_cnt)
  229. {
  230. #ifdef U8G2_USE_DYNAMIC_ALLOC
  231. *page_cnt = 16;
  232. return 0;
  233. #else
  234. #ifndef U8G2_USE_ONE_STATIC_BUFF
  235. static uint8_t buf[1024];
  236. #endif // !U8G2_USE_ONE_STATIC_BUFF
  237. *page_cnt = 16;
  238. return buf;
  239. #endif
  240. }
  241. uint8_t *u8g2_m_12_12_1(uint8_t *page_cnt)
  242. {
  243. #ifdef U8G2_USE_DYNAMIC_ALLOC
  244. *page_cnt = 1;
  245. return 0;
  246. #else
  247. #ifndef U8G2_USE_ONE_STATIC_BUFF
  248. static uint8_t buf[96];
  249. #endif // !U8G2_USE_ONE_STATIC_BUFF
  250. *page_cnt = 1;
  251. return buf;
  252. #endif
  253. }
  254. uint8_t *u8g2_m_12_12_2(uint8_t *page_cnt)
  255. {
  256. #ifdef U8G2_USE_DYNAMIC_ALLOC
  257. *page_cnt = 2;
  258. return 0;
  259. #else
  260. #ifndef U8G2_USE_ONE_STATIC_BUFF
  261. static uint8_t buf[192];
  262. #endif // !U8G2_USE_ONE_STATIC_BUFF
  263. *page_cnt = 2;
  264. return buf;
  265. #endif
  266. }
  267. uint8_t *u8g2_m_12_12_f(uint8_t *page_cnt)
  268. {
  269. #ifdef U8G2_USE_DYNAMIC_ALLOC
  270. *page_cnt = 12;
  271. return 0;
  272. #else
  273. #ifndef U8G2_USE_ONE_STATIC_BUFF
  274. static uint8_t buf[1152];
  275. #endif // !U8G2_USE_ONE_STATIC_BUFF
  276. *page_cnt = 12;
  277. return buf;
  278. #endif
  279. }
  280. uint8_t *u8g2_m_10_16_1(uint8_t *page_cnt)
  281. {
  282. #ifdef U8G2_USE_DYNAMIC_ALLOC
  283. *page_cnt = 1;
  284. return 0;
  285. #else
  286. #ifndef U8G2_USE_ONE_STATIC_BUFF
  287. static uint8_t buf[80];
  288. #endif // !U8G2_USE_ONE_STATIC_BUFF
  289. *page_cnt = 1;
  290. return buf;
  291. #endif
  292. }
  293. uint8_t *u8g2_m_10_16_2(uint8_t *page_cnt)
  294. {
  295. #ifdef U8G2_USE_DYNAMIC_ALLOC
  296. *page_cnt = 2;
  297. return 0;
  298. #else
  299. #ifndef U8G2_USE_ONE_STATIC_BUFF
  300. static uint8_t buf[160];
  301. #endif // !U8G2_USE_ONE_STATIC_BUFF
  302. *page_cnt = 2;
  303. return buf;
  304. #endif
  305. }
  306. uint8_t *u8g2_m_10_16_f(uint8_t *page_cnt)
  307. {
  308. #ifdef U8G2_USE_DYNAMIC_ALLOC
  309. *page_cnt = 16;
  310. return 0;
  311. #else
  312. #ifndef U8G2_USE_ONE_STATIC_BUFF
  313. static uint8_t buf[1280];
  314. #endif // !U8G2_USE_ONE_STATIC_BUFF
  315. *page_cnt = 16;
  316. return buf;
  317. #endif
  318. }
  319. uint8_t *u8g2_m_16_16_1(uint8_t *page_cnt)
  320. {
  321. #ifdef U8G2_USE_DYNAMIC_ALLOC
  322. *page_cnt = 1;
  323. return 0;
  324. #else
  325. #ifndef U8G2_USE_ONE_STATIC_BUFF
  326. static uint8_t buf[128];
  327. #endif // !U8G2_USE_ONE_STATIC_BUFF
  328. *page_cnt = 1;
  329. return buf;
  330. #endif
  331. }
  332. uint8_t *u8g2_m_16_16_2(uint8_t *page_cnt)
  333. {
  334. #ifdef U8G2_USE_DYNAMIC_ALLOC
  335. *page_cnt = 2;
  336. return 0;
  337. #else
  338. #ifndef U8G2_USE_ONE_STATIC_BUFF
  339. static uint8_t buf[256];
  340. #endif // !U8G2_USE_ONE_STATIC_BUFF
  341. *page_cnt = 2;
  342. return buf;
  343. #endif
  344. }
  345. uint8_t *u8g2_m_16_16_f(uint8_t *page_cnt)
  346. {
  347. #ifdef U8G2_USE_DYNAMIC_ALLOC
  348. *page_cnt = 16;
  349. return 0;
  350. #else
  351. #ifndef U8G2_USE_ONE_STATIC_BUFF
  352. static uint8_t buf[2048];
  353. #endif // !U8G2_USE_ONE_STATIC_BUFF
  354. *page_cnt = 16;
  355. return buf;
  356. #endif
  357. }
  358. uint8_t *u8g2_m_20_20_1(uint8_t *page_cnt)
  359. {
  360. #ifdef U8G2_USE_DYNAMIC_ALLOC
  361. *page_cnt = 1;
  362. return 0;
  363. #else
  364. #ifndef U8G2_USE_ONE_STATIC_BUFF
  365. static uint8_t buf[160];
  366. #endif // !U8G2_USE_ONE_STATIC_BUFF
  367. *page_cnt = 1;
  368. return buf;
  369. #endif
  370. }
  371. uint8_t *u8g2_m_20_20_2(uint8_t *page_cnt)
  372. {
  373. #ifdef U8G2_USE_DYNAMIC_ALLOC
  374. *page_cnt = 2;
  375. return 0;
  376. #else
  377. #ifndef U8G2_USE_ONE_STATIC_BUFF
  378. static uint8_t buf[320];
  379. #endif // !U8G2_USE_ONE_STATIC_BUFF
  380. *page_cnt = 2;
  381. return buf;
  382. #endif
  383. }
  384. uint8_t *u8g2_m_20_20_f(uint8_t *page_cnt)
  385. {
  386. #ifdef U8G2_USE_DYNAMIC_ALLOC
  387. *page_cnt = 20;
  388. return 0;
  389. #else
  390. #ifndef U8G2_USE_ONE_STATIC_BUFF
  391. static uint8_t buf[3200];
  392. #endif // !U8G2_USE_ONE_STATIC_BUFF
  393. *page_cnt = 20;
  394. return buf;
  395. #endif
  396. }
  397. uint8_t *u8g2_m_32_8_1(uint8_t *page_cnt)
  398. {
  399. #ifdef U8G2_USE_DYNAMIC_ALLOC
  400. *page_cnt = 1;
  401. return 0;
  402. #else
  403. #ifndef U8G2_USE_ONE_STATIC_BUFF
  404. static uint8_t buf[256];
  405. #endif // !U8G2_USE_ONE_STATIC_BUFF
  406. *page_cnt = 1;
  407. return buf;
  408. #endif
  409. }
  410. uint8_t *u8g2_m_32_8_2(uint8_t *page_cnt)
  411. {
  412. #ifdef U8G2_USE_DYNAMIC_ALLOC
  413. *page_cnt = 2;
  414. return 0;
  415. #else
  416. #ifndef U8G2_USE_ONE_STATIC_BUFF
  417. static uint8_t buf[512];
  418. #endif // !U8G2_USE_ONE_STATIC_BUFF
  419. *page_cnt = 2;
  420. return buf;
  421. #endif
  422. }
  423. uint8_t *u8g2_m_32_8_f(uint8_t *page_cnt)
  424. {
  425. #ifdef U8G2_USE_DYNAMIC_ALLOC
  426. *page_cnt = 8;
  427. return 0;
  428. #else
  429. #ifndef U8G2_USE_ONE_STATIC_BUFF
  430. static uint8_t buf[2048];
  431. #endif // !U8G2_USE_ONE_STATIC_BUFF
  432. *page_cnt = 8;
  433. return buf;
  434. #endif
  435. }
  436. uint8_t *u8g2_m_13_8_1(uint8_t *page_cnt)
  437. {
  438. #ifdef U8G2_USE_DYNAMIC_ALLOC
  439. *page_cnt = 1;
  440. return 0;
  441. #else
  442. #ifndef U8G2_USE_ONE_STATIC_BUFF
  443. static uint8_t buf[104];
  444. #endif // !U8G2_USE_ONE_STATIC_BUFF
  445. *page_cnt = 1;
  446. return buf;
  447. #endif
  448. }
  449. uint8_t *u8g2_m_13_8_2(uint8_t *page_cnt)
  450. {
  451. #ifdef U8G2_USE_DYNAMIC_ALLOC
  452. *page_cnt = 2;
  453. return 0;
  454. #else
  455. #ifndef U8G2_USE_ONE_STATIC_BUFF
  456. static uint8_t buf[208];
  457. #endif // !U8G2_USE_ONE_STATIC_BUFF
  458. *page_cnt = 2;
  459. return buf;
  460. #endif
  461. }
  462. uint8_t *u8g2_m_13_8_f(uint8_t *page_cnt)
  463. {
  464. #ifdef U8G2_USE_DYNAMIC_ALLOC
  465. *page_cnt = 8;
  466. return 0;
  467. #else
  468. #ifndef U8G2_USE_ONE_STATIC_BUFF
  469. static uint8_t buf[832];
  470. #endif // !U8G2_USE_ONE_STATIC_BUFF
  471. *page_cnt = 8;
  472. return buf;
  473. #endif
  474. }
  475. uint8_t *u8g2_m_8_6_1(uint8_t *page_cnt)
  476. {
  477. #ifdef U8G2_USE_DYNAMIC_ALLOC
  478. *page_cnt = 1;
  479. return 0;
  480. #else
  481. #ifndef U8G2_USE_ONE_STATIC_BUFF
  482. static uint8_t buf[64];
  483. #endif // !U8G2_USE_ONE_STATIC_BUFF
  484. *page_cnt = 1;
  485. return buf;
  486. #endif
  487. }
  488. uint8_t *u8g2_m_8_6_2(uint8_t *page_cnt)
  489. {
  490. #ifdef U8G2_USE_DYNAMIC_ALLOC
  491. *page_cnt = 2;
  492. return 0;
  493. #else
  494. #ifndef U8G2_USE_ONE_STATIC_BUFF
  495. static uint8_t buf[128];
  496. #endif // !U8G2_USE_ONE_STATIC_BUFF
  497. *page_cnt = 2;
  498. return buf;
  499. #endif
  500. }
  501. uint8_t *u8g2_m_8_6_f(uint8_t *page_cnt)
  502. {
  503. #ifdef U8G2_USE_DYNAMIC_ALLOC
  504. *page_cnt = 6;
  505. return 0;
  506. #else
  507. #ifndef U8G2_USE_ONE_STATIC_BUFF
  508. static uint8_t buf[384];
  509. #endif // !U8G2_USE_ONE_STATIC_BUFF
  510. *page_cnt = 6;
  511. return buf;
  512. #endif
  513. }
  514. uint8_t *u8g2_m_6_8_1(uint8_t *page_cnt)
  515. {
  516. #ifdef U8G2_USE_DYNAMIC_ALLOC
  517. *page_cnt = 1;
  518. return 0;
  519. #else
  520. #ifndef U8G2_USE_ONE_STATIC_BUFF
  521. static uint8_t buf[48];
  522. #endif // !U8G2_USE_ONE_STATIC_BUFF
  523. *page_cnt = 1;
  524. return buf;
  525. #endif
  526. }
  527. uint8_t *u8g2_m_6_8_2(uint8_t *page_cnt)
  528. {
  529. #ifdef U8G2_USE_DYNAMIC_ALLOC
  530. *page_cnt = 2;
  531. return 0;
  532. #else
  533. #ifndef U8G2_USE_ONE_STATIC_BUFF
  534. static uint8_t buf[96];
  535. #endif // !U8G2_USE_ONE_STATIC_BUFF
  536. *page_cnt = 2;
  537. return buf;
  538. #endif
  539. }
  540. uint8_t *u8g2_m_6_8_f(uint8_t *page_cnt)
  541. {
  542. #ifdef U8G2_USE_DYNAMIC_ALLOC
  543. *page_cnt = 8;
  544. return 0;
  545. #else
  546. #ifndef U8G2_USE_ONE_STATIC_BUFF
  547. static uint8_t buf[384];
  548. #endif // !U8G2_USE_ONE_STATIC_BUFF
  549. *page_cnt = 8;
  550. return buf;
  551. #endif
  552. }
  553. uint8_t *u8g2_m_12_2_1(uint8_t *page_cnt)
  554. {
  555. #ifdef U8G2_USE_DYNAMIC_ALLOC
  556. *page_cnt = 1;
  557. return 0;
  558. #else
  559. #ifndef U8G2_USE_ONE_STATIC_BUFF
  560. static uint8_t buf[96];
  561. #endif // !U8G2_USE_ONE_STATIC_BUFF
  562. *page_cnt = 1;
  563. return buf;
  564. #endif
  565. }
  566. uint8_t *u8g2_m_12_2_2(uint8_t *page_cnt)
  567. {
  568. #ifdef U8G2_USE_DYNAMIC_ALLOC
  569. *page_cnt = 2;
  570. return 0;
  571. #else
  572. #ifndef U8G2_USE_ONE_STATIC_BUFF
  573. static uint8_t buf[192];
  574. #endif // !U8G2_USE_ONE_STATIC_BUFF
  575. *page_cnt = 2;
  576. return buf;
  577. #endif
  578. }
  579. uint8_t *u8g2_m_12_2_f(uint8_t *page_cnt)
  580. {
  581. #ifdef U8G2_USE_DYNAMIC_ALLOC
  582. *page_cnt = 2;
  583. return 0;
  584. #else
  585. #ifndef U8G2_USE_ONE_STATIC_BUFF
  586. static uint8_t buf[192];
  587. #endif // !U8G2_USE_ONE_STATIC_BUFF
  588. *page_cnt = 2;
  589. return buf;
  590. #endif
  591. }
  592. uint8_t *u8g2_m_16_12_1(uint8_t *page_cnt)
  593. {
  594. #ifdef U8G2_USE_DYNAMIC_ALLOC
  595. *page_cnt = 1;
  596. return 0;
  597. #else
  598. #ifndef U8G2_USE_ONE_STATIC_BUFF
  599. static uint8_t buf[128];
  600. #endif // !U8G2_USE_ONE_STATIC_BUFF
  601. *page_cnt = 1;
  602. return buf;
  603. #endif
  604. }
  605. uint8_t *u8g2_m_16_12_2(uint8_t *page_cnt)
  606. {
  607. #ifdef U8G2_USE_DYNAMIC_ALLOC
  608. *page_cnt = 2;
  609. return 0;
  610. #else
  611. #ifndef U8G2_USE_ONE_STATIC_BUFF
  612. static uint8_t buf[256];
  613. #endif // !U8G2_USE_ONE_STATIC_BUFF
  614. *page_cnt = 2;
  615. return buf;
  616. #endif
  617. }
  618. uint8_t *u8g2_m_16_12_f(uint8_t *page_cnt)
  619. {
  620. #ifdef U8G2_USE_DYNAMIC_ALLOC
  621. *page_cnt = 12;
  622. return 0;
  623. #else
  624. #ifndef U8G2_USE_ONE_STATIC_BUFF
  625. static uint8_t buf[1536];
  626. #endif // !U8G2_USE_ONE_STATIC_BUFF
  627. *page_cnt = 12;
  628. return buf;
  629. #endif
  630. }
  631. uint8_t *u8g2_m_32_4_1(uint8_t *page_cnt)
  632. {
  633. #ifdef U8G2_USE_DYNAMIC_ALLOC
  634. *page_cnt = 1;
  635. return 0;
  636. #else
  637. #ifndef U8G2_USE_ONE_STATIC_BUFF
  638. static uint8_t buf[256];
  639. #endif // !U8G2_USE_ONE_STATIC_BUFF
  640. *page_cnt = 1;
  641. return buf;
  642. #endif
  643. }
  644. uint8_t *u8g2_m_32_4_2(uint8_t *page_cnt)
  645. {
  646. #ifdef U8G2_USE_DYNAMIC_ALLOC
  647. *page_cnt = 2;
  648. return 0;
  649. #else
  650. #ifndef U8G2_USE_ONE_STATIC_BUFF
  651. static uint8_t buf[512];
  652. #endif // !U8G2_USE_ONE_STATIC_BUFF
  653. *page_cnt = 2;
  654. return buf;
  655. #endif
  656. }
  657. uint8_t *u8g2_m_32_4_f(uint8_t *page_cnt)
  658. {
  659. #ifdef U8G2_USE_DYNAMIC_ALLOC
  660. *page_cnt = 4;
  661. return 0;
  662. #else
  663. #ifndef U8G2_USE_ONE_STATIC_BUFF
  664. static uint8_t buf[1024];
  665. #endif // !U8G2_USE_ONE_STATIC_BUFF
  666. *page_cnt = 4;
  667. return buf;
  668. #endif
  669. }
  670. uint8_t *u8g2_m_12_8_1(uint8_t *page_cnt)
  671. {
  672. #ifdef U8G2_USE_DYNAMIC_ALLOC
  673. *page_cnt = 1;
  674. return 0;
  675. #else
  676. #ifndef U8G2_USE_ONE_STATIC_BUFF
  677. static uint8_t buf[96];
  678. #endif // !U8G2_USE_ONE_STATIC_BUFF
  679. *page_cnt = 1;
  680. return buf;
  681. #endif
  682. }
  683. uint8_t *u8g2_m_12_8_2(uint8_t *page_cnt)
  684. {
  685. #ifdef U8G2_USE_DYNAMIC_ALLOC
  686. *page_cnt = 2;
  687. return 0;
  688. #else
  689. #ifndef U8G2_USE_ONE_STATIC_BUFF
  690. static uint8_t buf[192];
  691. #endif // !U8G2_USE_ONE_STATIC_BUFF
  692. *page_cnt = 2;
  693. return buf;
  694. #endif
  695. }
  696. uint8_t *u8g2_m_12_8_f(uint8_t *page_cnt)
  697. {
  698. #ifdef U8G2_USE_DYNAMIC_ALLOC
  699. *page_cnt = 8;
  700. return 0;
  701. #else
  702. #ifndef U8G2_USE_ONE_STATIC_BUFF
  703. static uint8_t buf[768];
  704. #endif // !U8G2_USE_ONE_STATIC_BUFF
  705. *page_cnt = 8;
  706. return buf;
  707. #endif
  708. }
  709. uint8_t *u8g2_m_24_4_1(uint8_t *page_cnt)
  710. {
  711. #ifdef U8G2_USE_DYNAMIC_ALLOC
  712. *page_cnt = 1;
  713. return 0;
  714. #else
  715. #ifndef U8G2_USE_ONE_STATIC_BUFF
  716. static uint8_t buf[192];
  717. #endif // !U8G2_USE_ONE_STATIC_BUFF
  718. *page_cnt = 1;
  719. return buf;
  720. #endif
  721. }
  722. uint8_t *u8g2_m_24_4_2(uint8_t *page_cnt)
  723. {
  724. #ifdef U8G2_USE_DYNAMIC_ALLOC
  725. *page_cnt = 2;
  726. return 0;
  727. #else
  728. #ifndef U8G2_USE_ONE_STATIC_BUFF
  729. static uint8_t buf[384];
  730. #endif // !U8G2_USE_ONE_STATIC_BUFF
  731. *page_cnt = 2;
  732. return buf;
  733. #endif
  734. }
  735. uint8_t *u8g2_m_24_4_f(uint8_t *page_cnt)
  736. {
  737. #ifdef U8G2_USE_DYNAMIC_ALLOC
  738. *page_cnt = 4;
  739. return 0;
  740. #else
  741. #ifndef U8G2_USE_ONE_STATIC_BUFF
  742. static uint8_t buf[768];
  743. #endif // !U8G2_USE_ONE_STATIC_BUFF
  744. *page_cnt = 4;
  745. return buf;
  746. #endif
  747. }
  748. uint8_t *u8g2_m_50_30_1(uint8_t *page_cnt)
  749. {
  750. #ifdef U8G2_USE_DYNAMIC_ALLOC
  751. *page_cnt = 1;
  752. return 0;
  753. #else
  754. #ifndef U8G2_USE_ONE_STATIC_BUFF
  755. static uint8_t buf[400];
  756. #endif // !U8G2_USE_ONE_STATIC_BUFF
  757. *page_cnt = 1;
  758. return buf;
  759. #endif
  760. }
  761. uint8_t *u8g2_m_50_30_2(uint8_t *page_cnt)
  762. {
  763. #ifdef U8G2_USE_DYNAMIC_ALLOC
  764. *page_cnt = 2;
  765. return 0;
  766. #else
  767. #ifndef U8G2_USE_ONE_STATIC_BUFF
  768. static uint8_t buf[800];
  769. #endif // !U8G2_USE_ONE_STATIC_BUFF
  770. *page_cnt = 2;
  771. return buf;
  772. #endif
  773. }
  774. uint8_t *u8g2_m_50_30_f(uint8_t *page_cnt)
  775. {
  776. #ifdef U8G2_USE_DYNAMIC_ALLOC
  777. *page_cnt = 30;
  778. return 0;
  779. #else
  780. #ifndef U8G2_USE_ONE_STATIC_BUFF
  781. static uint8_t buf[12000];
  782. #endif // !U8G2_USE_ONE_STATIC_BUFF
  783. *page_cnt = 30;
  784. return buf;
  785. #endif
  786. }
  787. uint8_t *u8g2_m_18_21_1(uint8_t *page_cnt)
  788. {
  789. #ifdef U8G2_USE_DYNAMIC_ALLOC
  790. *page_cnt = 1;
  791. return 0;
  792. #else
  793. #ifndef U8G2_USE_ONE_STATIC_BUFF
  794. static uint8_t buf[144];
  795. #endif // !U8G2_USE_ONE_STATIC_BUFF
  796. *page_cnt = 1;
  797. return buf;
  798. #endif
  799. }
  800. uint8_t *u8g2_m_18_21_2(uint8_t *page_cnt)
  801. {
  802. #ifdef U8G2_USE_DYNAMIC_ALLOC
  803. *page_cnt = 2;
  804. return 0;
  805. #else
  806. #ifndef U8G2_USE_ONE_STATIC_BUFF
  807. static uint8_t buf[288];
  808. #endif // !U8G2_USE_ONE_STATIC_BUFF
  809. *page_cnt = 2;
  810. return buf;
  811. #endif
  812. }
  813. uint8_t *u8g2_m_18_21_f(uint8_t *page_cnt)
  814. {
  815. #ifdef U8G2_USE_DYNAMIC_ALLOC
  816. *page_cnt = 21;
  817. return 0;
  818. #else
  819. #ifndef U8G2_USE_ONE_STATIC_BUFF
  820. static uint8_t buf[3024];
  821. #endif // !U8G2_USE_ONE_STATIC_BUFF
  822. *page_cnt = 21;
  823. return buf;
  824. #endif
  825. }
  826. uint8_t *u8g2_m_11_6_1(uint8_t *page_cnt)
  827. {
  828. #ifdef U8G2_USE_DYNAMIC_ALLOC
  829. *page_cnt = 1;
  830. return 0;
  831. #else
  832. #ifndef U8G2_USE_ONE_STATIC_BUFF
  833. static uint8_t buf[88];
  834. #endif // !U8G2_USE_ONE_STATIC_BUFF
  835. *page_cnt = 1;
  836. return buf;
  837. #endif
  838. }
  839. uint8_t *u8g2_m_11_6_2(uint8_t *page_cnt)
  840. {
  841. #ifdef U8G2_USE_DYNAMIC_ALLOC
  842. *page_cnt = 2;
  843. return 0;
  844. #else
  845. #ifndef U8G2_USE_ONE_STATIC_BUFF
  846. static uint8_t buf[176];
  847. #endif // !U8G2_USE_ONE_STATIC_BUFF
  848. *page_cnt = 2;
  849. return buf;
  850. #endif
  851. }
  852. uint8_t *u8g2_m_11_6_f(uint8_t *page_cnt)
  853. {
  854. #ifdef U8G2_USE_DYNAMIC_ALLOC
  855. *page_cnt = 6;
  856. return 0;
  857. #else
  858. #ifndef U8G2_USE_ONE_STATIC_BUFF
  859. static uint8_t buf[528];
  860. #endif // !U8G2_USE_ONE_STATIC_BUFF
  861. *page_cnt = 6;
  862. return buf;
  863. #endif
  864. }
  865. uint8_t *u8g2_m_12_9_1(uint8_t *page_cnt)
  866. {
  867. #ifdef U8G2_USE_DYNAMIC_ALLOC
  868. *page_cnt = 1;
  869. return 0;
  870. #else
  871. #ifndef U8G2_USE_ONE_STATIC_BUFF
  872. static uint8_t buf[96];
  873. #endif // !U8G2_USE_ONE_STATIC_BUFF
  874. *page_cnt = 1;
  875. return buf;
  876. #endif
  877. }
  878. uint8_t *u8g2_m_12_9_2(uint8_t *page_cnt)
  879. {
  880. #ifdef U8G2_USE_DYNAMIC_ALLOC
  881. *page_cnt = 2;
  882. return 0;
  883. #else
  884. #ifndef U8G2_USE_ONE_STATIC_BUFF
  885. static uint8_t buf[192];
  886. #endif // !U8G2_USE_ONE_STATIC_BUFF
  887. *page_cnt = 2;
  888. return buf;
  889. #endif
  890. }
  891. uint8_t *u8g2_m_12_9_f(uint8_t *page_cnt)
  892. {
  893. #ifdef U8G2_USE_DYNAMIC_ALLOC
  894. *page_cnt = 9;
  895. return 0;
  896. #else
  897. #ifndef U8G2_USE_ONE_STATIC_BUFF
  898. static uint8_t buf[864];
  899. #endif // !U8G2_USE_ONE_STATIC_BUFF
  900. *page_cnt = 9;
  901. return buf;
  902. #endif
  903. }
  904. uint8_t *u8g2_m_24_8_1(uint8_t *page_cnt)
  905. {
  906. #ifdef U8G2_USE_DYNAMIC_ALLOC
  907. *page_cnt = 1;
  908. return 0;
  909. #else
  910. #ifndef U8G2_USE_ONE_STATIC_BUFF
  911. static uint8_t buf[192];
  912. #endif // !U8G2_USE_ONE_STATIC_BUFF
  913. *page_cnt = 1;
  914. return buf;
  915. #endif
  916. }
  917. uint8_t *u8g2_m_24_8_2(uint8_t *page_cnt)
  918. {
  919. #ifdef U8G2_USE_DYNAMIC_ALLOC
  920. *page_cnt = 2;
  921. return 0;
  922. #else
  923. #ifndef U8G2_USE_ONE_STATIC_BUFF
  924. static uint8_t buf[384];
  925. #endif // !U8G2_USE_ONE_STATIC_BUFF
  926. *page_cnt = 2;
  927. return buf;
  928. #endif
  929. }
  930. uint8_t *u8g2_m_24_8_f(uint8_t *page_cnt)
  931. {
  932. #ifdef U8G2_USE_DYNAMIC_ALLOC
  933. *page_cnt = 8;
  934. return 0;
  935. #else
  936. #ifndef U8G2_USE_ONE_STATIC_BUFF
  937. static uint8_t buf[1536];
  938. #endif // !U8G2_USE_ONE_STATIC_BUFF
  939. *page_cnt = 8;
  940. return buf;
  941. #endif
  942. }
  943. uint8_t *u8g2_m_30_8_1(uint8_t *page_cnt)
  944. {
  945. #ifdef U8G2_USE_DYNAMIC_ALLOC
  946. *page_cnt = 1;
  947. return 0;
  948. #else
  949. #ifndef U8G2_USE_ONE_STATIC_BUFF
  950. static uint8_t buf[240];
  951. #endif // !U8G2_USE_ONE_STATIC_BUFF
  952. *page_cnt = 1;
  953. return buf;
  954. #endif
  955. }
  956. uint8_t *u8g2_m_30_8_2(uint8_t *page_cnt)
  957. {
  958. #ifdef U8G2_USE_DYNAMIC_ALLOC
  959. *page_cnt = 2;
  960. return 0;
  961. #else
  962. #ifndef U8G2_USE_ONE_STATIC_BUFF
  963. static uint8_t buf[480];
  964. #endif // !U8G2_USE_ONE_STATIC_BUFF
  965. *page_cnt = 2;
  966. return buf;
  967. #endif
  968. }
  969. uint8_t *u8g2_m_30_8_f(uint8_t *page_cnt)
  970. {
  971. #ifdef U8G2_USE_DYNAMIC_ALLOC
  972. *page_cnt = 8;
  973. return 0;
  974. #else
  975. #ifndef U8G2_USE_ONE_STATIC_BUFF
  976. static uint8_t buf[1920];
  977. #endif // !U8G2_USE_ONE_STATIC_BUFF
  978. *page_cnt = 8;
  979. return buf;
  980. #endif
  981. }
  982. uint8_t *u8g2_m_30_15_1(uint8_t *page_cnt)
  983. {
  984. #ifdef U8G2_USE_DYNAMIC_ALLOC
  985. *page_cnt = 1;
  986. return 0;
  987. #else
  988. #ifndef U8G2_USE_ONE_STATIC_BUFF
  989. static uint8_t buf[240];
  990. #endif // !U8G2_USE_ONE_STATIC_BUFF
  991. *page_cnt = 1;
  992. return buf;
  993. #endif
  994. }
  995. uint8_t *u8g2_m_30_15_2(uint8_t *page_cnt)
  996. {
  997. #ifdef U8G2_USE_DYNAMIC_ALLOC
  998. *page_cnt = 2;
  999. return 0;
  1000. #else
  1001. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1002. static uint8_t buf[480];
  1003. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1004. *page_cnt = 2;
  1005. return buf;
  1006. #endif
  1007. }
  1008. uint8_t *u8g2_m_30_15_f(uint8_t *page_cnt)
  1009. {
  1010. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1011. *page_cnt = 15;
  1012. return 0;
  1013. #else
  1014. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1015. static uint8_t buf[3600];
  1016. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1017. *page_cnt = 15;
  1018. return buf;
  1019. #endif
  1020. }
  1021. uint8_t *u8g2_m_30_16_1(uint8_t *page_cnt)
  1022. {
  1023. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1024. *page_cnt = 1;
  1025. return 0;
  1026. #else
  1027. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1028. static uint8_t buf[240];
  1029. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1030. *page_cnt = 1;
  1031. return buf;
  1032. #endif
  1033. }
  1034. uint8_t *u8g2_m_30_16_2(uint8_t *page_cnt)
  1035. {
  1036. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1037. *page_cnt = 2;
  1038. return 0;
  1039. #else
  1040. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1041. static uint8_t buf[480];
  1042. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1043. *page_cnt = 2;
  1044. return buf;
  1045. #endif
  1046. }
  1047. uint8_t *u8g2_m_30_16_f(uint8_t *page_cnt)
  1048. {
  1049. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1050. *page_cnt = 16;
  1051. return 0;
  1052. #else
  1053. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1054. static uint8_t buf[3840];
  1055. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1056. *page_cnt = 16;
  1057. return buf;
  1058. #endif
  1059. }
  1060. uint8_t *u8g2_m_20_16_1(uint8_t *page_cnt)
  1061. {
  1062. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1063. *page_cnt = 1;
  1064. return 0;
  1065. #else
  1066. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1067. static uint8_t buf[160];
  1068. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1069. *page_cnt = 1;
  1070. return buf;
  1071. #endif
  1072. }
  1073. uint8_t *u8g2_m_20_16_2(uint8_t *page_cnt)
  1074. {
  1075. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1076. *page_cnt = 2;
  1077. return 0;
  1078. #else
  1079. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1080. static uint8_t buf[320];
  1081. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1082. *page_cnt = 2;
  1083. return buf;
  1084. #endif
  1085. }
  1086. uint8_t *u8g2_m_20_16_f(uint8_t *page_cnt)
  1087. {
  1088. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1089. *page_cnt = 16;
  1090. return 0;
  1091. #else
  1092. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1093. static uint8_t buf[2560];
  1094. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1095. *page_cnt = 16;
  1096. return buf;
  1097. #endif
  1098. }
  1099. uint8_t *u8g2_m_24_12_1(uint8_t *page_cnt)
  1100. {
  1101. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1102. *page_cnt = 1;
  1103. return 0;
  1104. #else
  1105. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1106. static uint8_t buf[192];
  1107. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1108. *page_cnt = 1;
  1109. return buf;
  1110. #endif
  1111. }
  1112. uint8_t *u8g2_m_24_12_2(uint8_t *page_cnt)
  1113. {
  1114. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1115. *page_cnt = 2;
  1116. return 0;
  1117. #else
  1118. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1119. static uint8_t buf[384];
  1120. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1121. *page_cnt = 2;
  1122. return buf;
  1123. #endif
  1124. }
  1125. uint8_t *u8g2_m_24_12_f(uint8_t *page_cnt)
  1126. {
  1127. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1128. *page_cnt = 12;
  1129. return 0;
  1130. #else
  1131. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1132. static uint8_t buf[2304];
  1133. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1134. *page_cnt = 12;
  1135. return buf;
  1136. #endif
  1137. }
  1138. uint8_t *u8g2_m_20_13_1(uint8_t *page_cnt)
  1139. {
  1140. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1141. *page_cnt = 1;
  1142. return 0;
  1143. #else
  1144. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1145. static uint8_t buf[160];
  1146. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1147. *page_cnt = 1;
  1148. return buf;
  1149. #endif
  1150. }
  1151. uint8_t *u8g2_m_20_13_2(uint8_t *page_cnt)
  1152. {
  1153. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1154. *page_cnt = 2;
  1155. return 0;
  1156. #else
  1157. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1158. static uint8_t buf[320];
  1159. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1160. *page_cnt = 2;
  1161. return buf;
  1162. #endif
  1163. }
  1164. uint8_t *u8g2_m_20_13_f(uint8_t *page_cnt)
  1165. {
  1166. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1167. *page_cnt = 13;
  1168. return 0;
  1169. #else
  1170. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1171. static uint8_t buf[2080];
  1172. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1173. *page_cnt = 13;
  1174. return buf;
  1175. #endif
  1176. }
  1177. uint8_t *u8g2_m_30_20_1(uint8_t *page_cnt)
  1178. {
  1179. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1180. *page_cnt = 1;
  1181. return 0;
  1182. #else
  1183. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1184. static uint8_t buf[240];
  1185. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1186. *page_cnt = 1;
  1187. return buf;
  1188. #endif
  1189. }
  1190. uint8_t *u8g2_m_30_20_2(uint8_t *page_cnt)
  1191. {
  1192. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1193. *page_cnt = 2;
  1194. return 0;
  1195. #else
  1196. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1197. static uint8_t buf[480];
  1198. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1199. *page_cnt = 2;
  1200. return buf;
  1201. #endif
  1202. }
  1203. uint8_t *u8g2_m_30_20_f(uint8_t *page_cnt)
  1204. {
  1205. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1206. *page_cnt = 20;
  1207. return 0;
  1208. #else
  1209. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1210. static uint8_t buf[4800];
  1211. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1212. *page_cnt = 20;
  1213. return buf;
  1214. #endif
  1215. }
  1216. uint8_t *u8g2_m_32_16_1(uint8_t *page_cnt)
  1217. {
  1218. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1219. *page_cnt = 1;
  1220. return 0;
  1221. #else
  1222. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1223. static uint8_t buf[256];
  1224. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1225. *page_cnt = 1;
  1226. return buf;
  1227. #endif
  1228. }
  1229. uint8_t *u8g2_m_32_16_2(uint8_t *page_cnt)
  1230. {
  1231. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1232. *page_cnt = 2;
  1233. return 0;
  1234. #else
  1235. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1236. static uint8_t buf[512];
  1237. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1238. *page_cnt = 2;
  1239. return buf;
  1240. #endif
  1241. }
  1242. uint8_t *u8g2_m_32_16_f(uint8_t *page_cnt)
  1243. {
  1244. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1245. *page_cnt = 16;
  1246. return 0;
  1247. #else
  1248. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1249. static uint8_t buf[4096];
  1250. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1251. *page_cnt = 16;
  1252. return buf;
  1253. #endif
  1254. }
  1255. uint8_t *u8g2_m_40_30_1(uint8_t *page_cnt)
  1256. {
  1257. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1258. *page_cnt = 1;
  1259. return 0;
  1260. #else
  1261. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1262. static uint8_t buf[320];
  1263. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1264. *page_cnt = 1;
  1265. return buf;
  1266. #endif
  1267. }
  1268. uint8_t *u8g2_m_40_30_2(uint8_t *page_cnt)
  1269. {
  1270. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1271. *page_cnt = 2;
  1272. return 0;
  1273. #else
  1274. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1275. static uint8_t buf[640];
  1276. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1277. *page_cnt = 2;
  1278. return buf;
  1279. #endif
  1280. }
  1281. uint8_t *u8g2_m_40_30_f(uint8_t *page_cnt)
  1282. {
  1283. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1284. *page_cnt = 30;
  1285. return 0;
  1286. #else
  1287. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1288. static uint8_t buf[9600];
  1289. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1290. *page_cnt = 30;
  1291. return buf;
  1292. #endif
  1293. }
  1294. uint8_t *u8g2_m_20_8_1(uint8_t *page_cnt)
  1295. {
  1296. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1297. *page_cnt = 1;
  1298. return 0;
  1299. #else
  1300. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1301. static uint8_t buf[160];
  1302. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1303. *page_cnt = 1;
  1304. return buf;
  1305. #endif
  1306. }
  1307. uint8_t *u8g2_m_20_8_2(uint8_t *page_cnt)
  1308. {
  1309. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1310. *page_cnt = 2;
  1311. return 0;
  1312. #else
  1313. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1314. static uint8_t buf[320];
  1315. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1316. *page_cnt = 2;
  1317. return buf;
  1318. #endif
  1319. }
  1320. uint8_t *u8g2_m_20_8_f(uint8_t *page_cnt)
  1321. {
  1322. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1323. *page_cnt = 8;
  1324. return 0;
  1325. #else
  1326. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1327. static uint8_t buf[1280];
  1328. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1329. *page_cnt = 8;
  1330. return buf;
  1331. #endif
  1332. }
  1333. uint8_t *u8g2_m_17_4_1(uint8_t *page_cnt)
  1334. {
  1335. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1336. *page_cnt = 1;
  1337. return 0;
  1338. #else
  1339. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1340. static uint8_t buf[136];
  1341. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1342. *page_cnt = 1;
  1343. return buf;
  1344. #endif
  1345. }
  1346. uint8_t *u8g2_m_17_4_2(uint8_t *page_cnt)
  1347. {
  1348. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1349. *page_cnt = 2;
  1350. return 0;
  1351. #else
  1352. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1353. static uint8_t buf[272];
  1354. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1355. *page_cnt = 2;
  1356. return buf;
  1357. #endif
  1358. }
  1359. uint8_t *u8g2_m_17_4_f(uint8_t *page_cnt)
  1360. {
  1361. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1362. *page_cnt = 4;
  1363. return 0;
  1364. #else
  1365. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1366. static uint8_t buf[544];
  1367. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1368. *page_cnt = 4;
  1369. return buf;
  1370. #endif
  1371. }
  1372. uint8_t *u8g2_m_17_8_1(uint8_t *page_cnt)
  1373. {
  1374. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1375. *page_cnt = 1;
  1376. return 0;
  1377. #else
  1378. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1379. static uint8_t buf[136];
  1380. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1381. *page_cnt = 1;
  1382. return buf;
  1383. #endif
  1384. }
  1385. uint8_t *u8g2_m_17_8_2(uint8_t *page_cnt)
  1386. {
  1387. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1388. *page_cnt = 2;
  1389. return 0;
  1390. #else
  1391. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1392. static uint8_t buf[272];
  1393. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1394. *page_cnt = 2;
  1395. return buf;
  1396. #endif
  1397. }
  1398. uint8_t *u8g2_m_17_8_f(uint8_t *page_cnt)
  1399. {
  1400. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1401. *page_cnt = 8;
  1402. return 0;
  1403. #else
  1404. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1405. static uint8_t buf[1088];
  1406. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1407. *page_cnt = 8;
  1408. return buf;
  1409. #endif
  1410. }
  1411. uint8_t *u8g2_m_48_17_1(uint8_t *page_cnt)
  1412. {
  1413. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1414. *page_cnt = 1;
  1415. return 0;
  1416. #else
  1417. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1418. static uint8_t buf[384];
  1419. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1420. *page_cnt = 1;
  1421. return buf;
  1422. #endif
  1423. }
  1424. uint8_t *u8g2_m_48_17_2(uint8_t *page_cnt)
  1425. {
  1426. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1427. *page_cnt = 2;
  1428. return 0;
  1429. #else
  1430. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1431. static uint8_t buf[768];
  1432. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1433. *page_cnt = 2;
  1434. return buf;
  1435. #endif
  1436. }
  1437. uint8_t *u8g2_m_48_17_f(uint8_t *page_cnt)
  1438. {
  1439. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1440. *page_cnt = 17;
  1441. return 0;
  1442. #else
  1443. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1444. static uint8_t buf[6528];
  1445. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1446. *page_cnt = 17;
  1447. return buf;
  1448. #endif
  1449. }
  1450. uint8_t *u8g2_m_20_12_1(uint8_t *page_cnt)
  1451. {
  1452. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1453. *page_cnt = 1;
  1454. return 0;
  1455. #else
  1456. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1457. static uint8_t buf[160];
  1458. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1459. *page_cnt = 1;
  1460. return buf;
  1461. #endif
  1462. }
  1463. uint8_t *u8g2_m_20_12_2(uint8_t *page_cnt)
  1464. {
  1465. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1466. *page_cnt = 2;
  1467. return 0;
  1468. #else
  1469. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1470. static uint8_t buf[320];
  1471. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1472. *page_cnt = 2;
  1473. return buf;
  1474. #endif
  1475. }
  1476. uint8_t *u8g2_m_20_12_f(uint8_t *page_cnt)
  1477. {
  1478. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1479. *page_cnt = 12;
  1480. return 0;
  1481. #else
  1482. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1483. static uint8_t buf[1920];
  1484. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1485. *page_cnt = 12;
  1486. return buf;
  1487. #endif
  1488. }
  1489. uint8_t *u8g2_m_32_20_1(uint8_t *page_cnt)
  1490. {
  1491. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1492. *page_cnt = 1;
  1493. return 0;
  1494. #else
  1495. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1496. static uint8_t buf[256];
  1497. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1498. *page_cnt = 1;
  1499. return buf;
  1500. #endif
  1501. }
  1502. uint8_t *u8g2_m_32_20_2(uint8_t *page_cnt)
  1503. {
  1504. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1505. *page_cnt = 2;
  1506. return 0;
  1507. #else
  1508. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1509. static uint8_t buf[512];
  1510. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1511. *page_cnt = 2;
  1512. return buf;
  1513. #endif
  1514. }
  1515. uint8_t *u8g2_m_32_20_f(uint8_t *page_cnt)
  1516. {
  1517. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1518. *page_cnt = 20;
  1519. return 0;
  1520. #else
  1521. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1522. static uint8_t buf[5120];
  1523. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1524. *page_cnt = 20;
  1525. return buf;
  1526. #endif
  1527. }
  1528. uint8_t *u8g2_m_22_13_1(uint8_t *page_cnt)
  1529. {
  1530. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1531. *page_cnt = 1;
  1532. return 0;
  1533. #else
  1534. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1535. static uint8_t buf[176];
  1536. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1537. *page_cnt = 1;
  1538. return buf;
  1539. #endif
  1540. }
  1541. uint8_t *u8g2_m_22_13_2(uint8_t *page_cnt)
  1542. {
  1543. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1544. *page_cnt = 2;
  1545. return 0;
  1546. #else
  1547. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1548. static uint8_t buf[352];
  1549. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1550. *page_cnt = 2;
  1551. return buf;
  1552. #endif
  1553. }
  1554. uint8_t *u8g2_m_22_13_f(uint8_t *page_cnt)
  1555. {
  1556. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1557. *page_cnt = 13;
  1558. return 0;
  1559. #else
  1560. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1561. static uint8_t buf[2288];
  1562. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1563. *page_cnt = 13;
  1564. return buf;
  1565. #endif
  1566. }
  1567. uint8_t *u8g2_m_19_4_1(uint8_t *page_cnt)
  1568. {
  1569. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1570. *page_cnt = 1;
  1571. return 0;
  1572. #else
  1573. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1574. static uint8_t buf[152];
  1575. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1576. *page_cnt = 1;
  1577. return buf;
  1578. #endif
  1579. }
  1580. uint8_t *u8g2_m_19_4_2(uint8_t *page_cnt)
  1581. {
  1582. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1583. *page_cnt = 2;
  1584. return 0;
  1585. #else
  1586. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1587. static uint8_t buf[304];
  1588. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1589. *page_cnt = 2;
  1590. return buf;
  1591. #endif
  1592. }
  1593. uint8_t *u8g2_m_19_4_f(uint8_t *page_cnt)
  1594. {
  1595. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1596. *page_cnt = 4;
  1597. return 0;
  1598. #else
  1599. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1600. static uint8_t buf[608];
  1601. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1602. *page_cnt = 4;
  1603. return buf;
  1604. #endif
  1605. }
  1606. uint8_t *u8g2_m_20_10_1(uint8_t *page_cnt)
  1607. {
  1608. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1609. *page_cnt = 1;
  1610. return 0;
  1611. #else
  1612. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1613. static uint8_t buf[160];
  1614. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1615. *page_cnt = 1;
  1616. return buf;
  1617. #endif
  1618. }
  1619. uint8_t *u8g2_m_20_10_2(uint8_t *page_cnt)
  1620. {
  1621. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1622. *page_cnt = 2;
  1623. return 0;
  1624. #else
  1625. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1626. static uint8_t buf[320];
  1627. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1628. *page_cnt = 2;
  1629. return buf;
  1630. #endif
  1631. }
  1632. uint8_t *u8g2_m_20_10_f(uint8_t *page_cnt)
  1633. {
  1634. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1635. *page_cnt = 10;
  1636. return 0;
  1637. #else
  1638. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1639. static uint8_t buf[1600];
  1640. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1641. *page_cnt = 10;
  1642. return buf;
  1643. #endif
  1644. }
  1645. uint8_t *u8g2_m_20_4_1(uint8_t *page_cnt)
  1646. {
  1647. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1648. *page_cnt = 1;
  1649. return 0;
  1650. #else
  1651. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1652. static uint8_t buf[160];
  1653. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1654. *page_cnt = 1;
  1655. return buf;
  1656. #endif
  1657. }
  1658. uint8_t *u8g2_m_20_4_2(uint8_t *page_cnt)
  1659. {
  1660. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1661. *page_cnt = 2;
  1662. return 0;
  1663. #else
  1664. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1665. static uint8_t buf[320];
  1666. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1667. *page_cnt = 2;
  1668. return buf;
  1669. #endif
  1670. }
  1671. uint8_t *u8g2_m_20_4_f(uint8_t *page_cnt)
  1672. {
  1673. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1674. *page_cnt = 4;
  1675. return 0;
  1676. #else
  1677. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1678. static uint8_t buf[640];
  1679. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1680. *page_cnt = 4;
  1681. return buf;
  1682. #endif
  1683. }
  1684. uint8_t *u8g2_m_20_17_1(uint8_t *page_cnt)
  1685. {
  1686. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1687. *page_cnt = 1;
  1688. return 0;
  1689. #else
  1690. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1691. static uint8_t buf[160];
  1692. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1693. *page_cnt = 1;
  1694. return buf;
  1695. #endif
  1696. }
  1697. uint8_t *u8g2_m_20_17_2(uint8_t *page_cnt)
  1698. {
  1699. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1700. *page_cnt = 2;
  1701. return 0;
  1702. #else
  1703. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1704. static uint8_t buf[320];
  1705. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1706. *page_cnt = 2;
  1707. return buf;
  1708. #endif
  1709. }
  1710. uint8_t *u8g2_m_20_17_f(uint8_t *page_cnt)
  1711. {
  1712. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1713. *page_cnt = 17;
  1714. return 0;
  1715. #else
  1716. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1717. static uint8_t buf[2720];
  1718. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1719. *page_cnt = 17;
  1720. return buf;
  1721. #endif
  1722. }
  1723. uint8_t *u8g2_m_22_9_1(uint8_t *page_cnt)
  1724. {
  1725. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1726. *page_cnt = 1;
  1727. return 0;
  1728. #else
  1729. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1730. static uint8_t buf[176];
  1731. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1732. *page_cnt = 1;
  1733. return buf;
  1734. #endif
  1735. }
  1736. uint8_t *u8g2_m_22_9_2(uint8_t *page_cnt)
  1737. {
  1738. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1739. *page_cnt = 2;
  1740. return 0;
  1741. #else
  1742. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1743. static uint8_t buf[352];
  1744. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1745. *page_cnt = 2;
  1746. return buf;
  1747. #endif
  1748. }
  1749. uint8_t *u8g2_m_22_9_f(uint8_t *page_cnt)
  1750. {
  1751. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1752. *page_cnt = 9;
  1753. return 0;
  1754. #else
  1755. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1756. static uint8_t buf[1584];
  1757. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1758. *page_cnt = 9;
  1759. return buf;
  1760. #endif
  1761. }
  1762. uint8_t *u8g2_m_25_25_1(uint8_t *page_cnt)
  1763. {
  1764. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1765. *page_cnt = 1;
  1766. return 0;
  1767. #else
  1768. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1769. static uint8_t buf[200];
  1770. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1771. *page_cnt = 1;
  1772. return buf;
  1773. #endif
  1774. }
  1775. uint8_t *u8g2_m_25_25_2(uint8_t *page_cnt)
  1776. {
  1777. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1778. *page_cnt = 2;
  1779. return 0;
  1780. #else
  1781. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1782. static uint8_t buf[400];
  1783. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1784. *page_cnt = 2;
  1785. return buf;
  1786. #endif
  1787. }
  1788. uint8_t *u8g2_m_25_25_f(uint8_t *page_cnt)
  1789. {
  1790. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1791. *page_cnt = 25;
  1792. return 0;
  1793. #else
  1794. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1795. static uint8_t buf[5000];
  1796. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1797. *page_cnt = 25;
  1798. return buf;
  1799. #endif
  1800. }
  1801. uint8_t *u8g2_m_37_16_1(uint8_t *page_cnt)
  1802. {
  1803. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1804. *page_cnt = 1;
  1805. return 0;
  1806. #else
  1807. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1808. static uint8_t buf[296];
  1809. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1810. *page_cnt = 1;
  1811. return buf;
  1812. #endif
  1813. }
  1814. uint8_t *u8g2_m_37_16_2(uint8_t *page_cnt)
  1815. {
  1816. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1817. *page_cnt = 2;
  1818. return 0;
  1819. #else
  1820. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1821. static uint8_t buf[592];
  1822. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1823. *page_cnt = 2;
  1824. return buf;
  1825. #endif
  1826. }
  1827. uint8_t *u8g2_m_37_16_f(uint8_t *page_cnt)
  1828. {
  1829. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1830. *page_cnt = 16;
  1831. return 0;
  1832. #else
  1833. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1834. static uint8_t buf[4736];
  1835. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1836. *page_cnt = 16;
  1837. return buf;
  1838. #endif
  1839. }
  1840. uint8_t *u8g2_m_8_1_1(uint8_t *page_cnt)
  1841. {
  1842. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1843. *page_cnt = 1;
  1844. return 0;
  1845. #else
  1846. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1847. static uint8_t buf[64];
  1848. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1849. *page_cnt = 1;
  1850. return buf;
  1851. #endif
  1852. }
  1853. uint8_t *u8g2_m_8_1_2(uint8_t *page_cnt)
  1854. {
  1855. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1856. *page_cnt = 2;
  1857. return 0;
  1858. #else
  1859. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1860. static uint8_t buf[128];
  1861. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1862. *page_cnt = 2;
  1863. return buf;
  1864. #endif
  1865. }
  1866. uint8_t *u8g2_m_8_1_f(uint8_t *page_cnt)
  1867. {
  1868. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1869. *page_cnt = 1;
  1870. return 0;
  1871. #else
  1872. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1873. static uint8_t buf[64];
  1874. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1875. *page_cnt = 1;
  1876. return buf;
  1877. #endif
  1878. }
  1879. uint8_t *u8g2_m_4_1_1(uint8_t *page_cnt)
  1880. {
  1881. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1882. *page_cnt = 1;
  1883. return 0;
  1884. #else
  1885. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1886. static uint8_t buf[32];
  1887. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1888. *page_cnt = 1;
  1889. return buf;
  1890. #endif
  1891. }
  1892. uint8_t *u8g2_m_4_1_2(uint8_t *page_cnt)
  1893. {
  1894. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1895. *page_cnt = 2;
  1896. return 0;
  1897. #else
  1898. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1899. static uint8_t buf[64];
  1900. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1901. *page_cnt = 2;
  1902. return buf;
  1903. #endif
  1904. }
  1905. uint8_t *u8g2_m_4_1_f(uint8_t *page_cnt)
  1906. {
  1907. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1908. *page_cnt = 1;
  1909. return 0;
  1910. #else
  1911. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1912. static uint8_t buf[32];
  1913. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1914. *page_cnt = 1;
  1915. return buf;
  1916. #endif
  1917. }
  1918. uint8_t *u8g2_m_1_1_1(uint8_t *page_cnt)
  1919. {
  1920. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1921. *page_cnt = 1;
  1922. return 0;
  1923. #else
  1924. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1925. static uint8_t buf[8];
  1926. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1927. *page_cnt = 1;
  1928. return buf;
  1929. #endif
  1930. }
  1931. uint8_t *u8g2_m_1_1_2(uint8_t *page_cnt)
  1932. {
  1933. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1934. *page_cnt = 2;
  1935. return 0;
  1936. #else
  1937. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1938. static uint8_t buf[16];
  1939. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1940. *page_cnt = 2;
  1941. return buf;
  1942. #endif
  1943. }
  1944. uint8_t *u8g2_m_1_1_f(uint8_t *page_cnt)
  1945. {
  1946. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1947. *page_cnt = 1;
  1948. return 0;
  1949. #else
  1950. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1951. static uint8_t buf[8];
  1952. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1953. *page_cnt = 1;
  1954. return buf;
  1955. #endif
  1956. }
  1957. uint8_t *u8g2_m_48_30_1(uint8_t *page_cnt)
  1958. {
  1959. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1960. *page_cnt = 1;
  1961. return 0;
  1962. #else
  1963. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1964. static uint8_t buf[384];
  1965. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1966. *page_cnt = 1;
  1967. return buf;
  1968. #endif
  1969. }
  1970. uint8_t *u8g2_m_48_30_2(uint8_t *page_cnt)
  1971. {
  1972. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1973. *page_cnt = 2;
  1974. return 0;
  1975. #else
  1976. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1977. static uint8_t buf[768];
  1978. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1979. *page_cnt = 2;
  1980. return buf;
  1981. #endif
  1982. }
  1983. uint8_t *u8g2_m_48_30_f(uint8_t *page_cnt)
  1984. {
  1985. #ifdef U8G2_USE_DYNAMIC_ALLOC
  1986. *page_cnt = 30;
  1987. return 0;
  1988. #else
  1989. #ifndef U8G2_USE_ONE_STATIC_BUFF
  1990. static uint8_t buf[11520];
  1991. #endif // !U8G2_USE_ONE_STATIC_BUFF
  1992. *page_cnt = 30;
  1993. return buf;
  1994. #endif
  1995. }
  1996. /* end of generated code */