我用的是二维数组
unsigned char pic[][32]={
{0xC0,0xE0,0xF0,0xF8,0x7C,0x7E,0x3F,0x0F,0x07,0x0F,0x1E,0x3E,0x7C,0xFC,0xF8,0xE0,
0x0F,0x3F,0x7E,0x7C,0xF8,0xF0,0xE0,0xE0,0xF8,0xFC,0x7E,0x3E,0x1F,0x0F,0x07,0x03},//
{0x00,0x41,0x61,0x31,0x19,0x0D,0x07,0x03,0x03,0x07,0x0D,0x19,0x31,0x61,0x41,0x00,
0x00,0x82,0x86,0x8C,0x98,0xB0,0xE0,0xC0,0xC0,0xE0,0xB0,0x98,0x8C,0x86,0x82,0x00},//
{0x00,0x19,0x19,0x19,0x19,0x19,0x19,0x00,0x00,0x19,0x19,0x19,0x19,0x19,0x19,0x00,
0x00,0x98,0x98,0x98,0x98,0x98,0x98,0x00,0x00,0x98,0x98,0x98,0x98,0x98,0x98,0x00},//
{0x00,0x00,0x00,0x39,0x39,0x39,0x00,0x00,0x00,0x39,0x39,0x39,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xCE,0xCE,0xCE,0x00,0x00,0x00,0xCE,0xCE,0xCE,0x00,0x00,0x00,0x00}//
};
一编译就产生了
Error[Pe167]: argument of type "unsigned char __flash *" is incompatible with parameter of type C:\Documents and Settings\Administrator\桌面\icehill\display.c 246
错误,不知道该怎么处理 |