我在做7920的画点程序发现下面的代码不错是avr的可是一编译就提示data large
错在哪里呢?
void DrawPoint(UINT8 x, UINT8 y,UINT8 color)
{
UINT8 x1,x2;
UINT8 dat=0x80;
if(x>=MAX_DOT_X)
return ;
if(y>= MAX_DOT_Y)
return ;
x1= x/8;
x2 = x&0x07;
dat = dat>>x2;
if(color)
lcdBuf[y][x1] |= dat;
else
lcdBuf[y][x1] &= ~dat;
} |