我在程序中定义了 const rom unsigned char Num_dat[]={/*0*/ 0x00,0xf0,0x08,0x04,0x04,0x04,0x08,0xf0, 0x00,0x07,0x08,0x10,0x10,0x10,0x08,0x07, /*1*/ 0x00,0x00,0x100,0x10,0xFc,0x00,0x00,0x00, 0x00,0x00,0x10,0x10,0x1F,0x10,0x10,0x00, /*2*/ 0x00,0x08,0x04,0x04,0x04,0x04,0x088,0x70, 0x00,0x1c,0x12,0x12,0x11,0x11,0x10,0x10, /*3*/ 0x00,0x08,0x04,0x04,0x84,0x84,0x84,0x78, 0x00,0x08,0x10,0x10,0x10,0x10,0x10,0x0f, /*4*/ 0x00,0x80,0x40,0x20,0x10,0x08,0xfc,0x00, 0x00,0x03,0x02,0x02,0x02,0x02,0x1f,0x02, /*5*/ 0x00,0x00,0x7c,0x84,0x84,0x84,0x84,0x04, 0x00,0x08,0x10,0x10,0x10,0x10,0x08,0x07, /*6*/ 0x00,0xe0,0x90,0x48,0x44,0x44,0x84,0x04, 0x00,0x07,0x08,0x10,0x10,0x10,0x08,0x07, /*7*/ 0x00,0x04,0x04,0x04,0x04,0xc4,0x34,0x0c, 0x00,0x00,0x10,0x0c,0x03,0x00,0x00,0x00, /*8*/ 0x00,0x30,0x48,0x84,0x84,0x84,0x48,0x30, 0x00,0x06,0x09,0x10,0x10,0x10,0x09,0x06, /*9*/ 0x00,0x70,0x88,0x04,0x04,0x04,0x08,0xf0, 0x00,0x00,0x10,0x11,0x11,0x09,0x05,0x03,};的字库 在调的时候数据为什么会不对, 我是这样调用的 定义*p p=Num_dat; 然后在显示程序中处理,结果显示是乱码.
后来我定义了一个数组; 把数据一个一个取出来在显示就对了 定义 buf[]; 将Num_dat移植到buf中 在显示处理,显示就对了 为什么呀
郁闷了好久了 想不通呀 |