51单片机12864显示波形中下面一段程序什么意思?void ShowData(unsigned char DataType,unsigned char X,unsigned char Y,unsigned char *DataArray)
{
unsigned char i,DataLimit=8;
if(DataType == Chrt) // Chrt=1
{
DataLimit = 16;
}
for(i=0;i<(DataLimit<<1);i++)
{
if(i == 0)
{
SetPos(X<<3,Y); //列左移3位,页数不变
}
else if(i == DataLimit)
{
SetPos(X<<3,Y); //列左移3位,页数不变
}
LCD_Write(*(DataArray+i),LCD_DATA);
}
}
|