typedef struct DotMatrixFont_s{
uint8_t* FontData;
uint8_t Width;
uint8_t Height;
} DotMatrixFont;
uint8_t DotMatrixFont16x16_data[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
DotMatrixFont DotMatrixFont16x16 = {
DotMatrixFont16x16_data,
16, /* Width */
16, /* Height */
};
如何计算DotMatrixFont16x16.FontData的字节大小呀?我用了sizeof就算出来的结果是错的。还有什么办法呢?
|