本帖最后由 沉默胜过白金 于 2017-3-9 21:56 编辑
RT,用的STM32F103VC , 256kbflash,生成的字库大约150k左右,完全可以装下,现在的问题是:
前几百个字,可以正常显示(假设首字母为a,b),后面的字(假设首字母C,d,,,,Z)就能显示了;
假设把后面的字数据放在首字母为a,b的前面,则这些移动过来的字又可以显示;之前原先在前面可以显示的,由于现在被挤到后面的就不可以显示了。
不知道问题出在哪,编译,下载没报错。
现在怀疑是不是那里没有设置好?
PS:用的 const uint8_t 声明的数组。
0xB1,0xF3, 0x00,0x10,0x20,0x10,0x11,0xF4,0x00,0x12,0xFC,0x10,0x0B,0xFE,0x48,0x10,0x28,0x50,// 斌 //
0x29,0x50,0x11,0x70,0x29,0x50,0x25,0x48,0x45,0x48,0x81,0x6A,0x03,0x86,0x00,0x02,
0xB1,0xF4, 0x02,0x04,0x42,0xFE,0x2A,0x10,0x2B,0xA4,0x0A,0x7E,0x8A,0x44,0x5F,0xD4,0x02,0x54,// 濒 //
0x2A,0x54,0x2A,0xD4,0xD3,0x54,0x42,0x54,0x44,0x10,0x48,0x28,0x50,0x46,0x01,0x82,
0xB1,0xF5, 0x00,0x80,0x40,0x40,0x2F,0xFE,0x28,0x02,0x10,0x64,0x83,0x80,0x52,0x10,0x13,0xF8,// 滨 //
0x12,0x20,0x22,0x20,0xE2,0x24,0x3F,0xFE,0x20,0x00,0x23,0x20,0x22,0x18,0x24,0x08,
0xB1,0xF6, 0x02,0x00,0x01,0x00,0x3F,0xFC,0x20,0x04,0x40,0xE8,0x0F,0x00,0x08,0x20,0x0F,0xF0,// 宾 //
0x08,0x40,0x08,0x40,0x08,0x44,0xFF,0xFE,0x00,0x00,0x0C,0x40,0x08,0x30,0x10,0x10,
0xB1,0xF7, 0x10,0x40,0x10,0x20,0x17,0xFE,0x14,0x02,0xFC,0x34,0x11,0xC0,0x15,0x10,0x19,0xF8,// 摈 //
0x31,0x10,0xD1,0x10,0x11,0x14,0x1F,0xFE,0x10,0x00,0x11,0x90,0x51,0x0C,0x22,0x04,
0xB1,0xF8, 0x00,0x20,0x00,0xF0,0x0F,0x00,0x08,0x00,0x08,0x00,0x08,0x10,0x0F,0xF8,0x08,0x40,// 兵 //
0x08,0x40,0x08,0x44,0xFF,0xFE,0x00,0x00,0x04,0x40,0x0C,0x30,0x10,0x18,0x20,0x08,
0xB1,0xF9, 0x00,0x80,0x40,0x80,0x30,0x84,0x10,0x8C,0x00,0x90,0x0F,0xA0,0x11,0xC0,0x12,0xC0,// 冰 //
0x22,0xA0,0xE4,0x90,0x24,0x88,0x28,0x8E,0x30,0x84,0x20,0x80,0x22,0x80,0x21,0x00,
memcpy(buf, (const uint8_t *)address, font_bytes);
感觉是不是这边的问题。
你不加注释真难看懂。
一周热门 更多>