5c81bb8abc
* add u8g2 and ui libs * add display driver and usage example * not init display in test mode * change todo text * fix removed code * Target f2 (#107) * add ioc for flipperzero f2 * add generated f1 files to f2 * regenerate cubemx * invert initial state of led * blink backligh * shutdown backlight on idle
1459 lines
24 KiB
C
1459 lines
24 KiB
C
/* u8g2_d_memory.c */
|
|
/* generated code, codebuild, u8g2 project */
|
|
|
|
#include "u8g2.h"
|
|
|
|
uint8_t *u8g2_m_16_4_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[128];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_16_4_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[256];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_16_4_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 4;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[512];
|
|
*page_cnt = 4;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_16_8_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[128];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_16_8_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[256];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_16_8_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 8;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[1024];
|
|
*page_cnt = 8;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_9_5_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[72];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_9_5_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[144];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_9_5_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 5;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[360];
|
|
*page_cnt = 5;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_8_4_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[64];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_8_4_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[128];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_8_4_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 4;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[256];
|
|
*page_cnt = 4;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_8_16_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[64];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_8_16_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[128];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_8_16_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 16;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[1024];
|
|
*page_cnt = 16;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_12_12_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[96];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_12_12_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[192];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_12_12_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 12;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[1152];
|
|
*page_cnt = 12;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_16_16_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[128];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_16_16_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[256];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_16_16_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 16;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[2048];
|
|
*page_cnt = 16;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_20_20_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[160];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_20_20_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[320];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_20_20_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 20;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[3200];
|
|
*page_cnt = 20;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_32_8_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[256];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_32_8_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[512];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_32_8_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 8;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[2048];
|
|
*page_cnt = 8;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_8_6_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[64];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_8_6_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[128];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_8_6_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 6;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[384];
|
|
*page_cnt = 6;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_6_8_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[48];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_6_8_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[96];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_6_8_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 8;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[384];
|
|
*page_cnt = 8;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_12_2_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[96];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_12_2_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[192];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_12_2_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[192];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_16_12_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[128];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_16_12_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[256];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_16_12_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 12;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[1536];
|
|
*page_cnt = 12;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_32_4_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[256];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_32_4_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[512];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_32_4_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 4;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[1024];
|
|
*page_cnt = 4;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_12_8_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[96];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_12_8_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[192];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_12_8_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 8;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[768];
|
|
*page_cnt = 8;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_24_4_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[192];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_24_4_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[384];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_24_4_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 4;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[768];
|
|
*page_cnt = 4;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_50_30_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[400];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_50_30_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[800];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_50_30_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 30;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[12000];
|
|
*page_cnt = 30;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_18_21_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[144];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_18_21_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[288];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_18_21_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 21;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[3024];
|
|
*page_cnt = 21;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_13_8_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[104];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_13_8_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[208];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_13_8_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 8;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[832];
|
|
*page_cnt = 8;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_11_6_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[88];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_11_6_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[176];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_11_6_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 6;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[528];
|
|
*page_cnt = 6;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_12_9_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[96];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_12_9_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[192];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_12_9_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 9;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[864];
|
|
*page_cnt = 9;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_24_8_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[192];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_24_8_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[384];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_24_8_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 8;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[1536];
|
|
*page_cnt = 8;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_30_8_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[240];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_30_8_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[480];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_30_8_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 8;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[1920];
|
|
*page_cnt = 8;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_30_15_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[240];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_30_15_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[480];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_30_15_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 15;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[3600];
|
|
*page_cnt = 15;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_30_16_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[240];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_30_16_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[480];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_30_16_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 16;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[3840];
|
|
*page_cnt = 16;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_20_16_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[160];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_20_16_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[320];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_20_16_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 16;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[2560];
|
|
*page_cnt = 16;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_20_13_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[160];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_20_13_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[320];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_20_13_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 13;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[2080];
|
|
*page_cnt = 13;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_30_20_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[240];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_30_20_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[480];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_30_20_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 20;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[4800];
|
|
*page_cnt = 20;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_40_30_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[320];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_40_30_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[640];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_40_30_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 30;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[9600];
|
|
*page_cnt = 30;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_17_4_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[136];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_17_4_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[272];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_17_4_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 4;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[544];
|
|
*page_cnt = 4;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_17_8_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[136];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_17_8_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[272];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_17_8_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 8;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[1088];
|
|
*page_cnt = 8;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_48_17_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[384];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_48_17_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[768];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_48_17_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 17;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[6528];
|
|
*page_cnt = 17;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_32_16_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[256];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_32_16_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[512];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_32_16_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 16;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[4096];
|
|
*page_cnt = 16;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_32_20_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[256];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_32_20_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[512];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_32_20_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 20;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[5120];
|
|
*page_cnt = 20;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_22_13_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[176];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_22_13_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[352];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_22_13_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 13;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[2288];
|
|
*page_cnt = 13;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_24_12_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[192];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_24_12_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[384];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_24_12_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 12;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[2304];
|
|
*page_cnt = 12;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_20_10_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[160];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_20_10_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[320];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_20_10_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 10;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[1600];
|
|
*page_cnt = 10;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_22_9_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[176];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_22_9_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[352];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_22_9_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 9;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[1584];
|
|
*page_cnt = 9;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_25_25_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[200];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_25_25_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[400];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_25_25_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 25;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[5000];
|
|
*page_cnt = 25;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_37_16_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[296];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_37_16_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[592];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_37_16_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 16;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[4736];
|
|
*page_cnt = 16;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_8_1_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[64];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_8_1_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[128];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_8_1_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[64];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_4_1_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[32];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_4_1_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[64];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_4_1_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[32];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_1_1_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[8];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_1_1_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[16];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_1_1_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[8];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_48_30_1(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 1;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[384];
|
|
*page_cnt = 1;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_48_30_2(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 2;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[768];
|
|
*page_cnt = 2;
|
|
return buf;
|
|
#endif
|
|
}
|
|
uint8_t *u8g2_m_48_30_f(uint8_t *page_cnt)
|
|
{
|
|
#ifdef U8G2_USE_DYNAMIC_ALLOC
|
|
*page_cnt = 30;
|
|
return 0;
|
|
#else
|
|
static uint8_t buf[11520];
|
|
*page_cnt = 30;
|
|
return buf;
|
|
#endif
|
|
}
|
|
/* end of generated code */
|