|
/*******************************************************************************
//函数名:void Print6(INT8U xx, INT8U yy, INT8U ch1[], INT8U yn)
//功能:显示6*8字符串
//输入:xx ,yy 坐标,ch1待显示的字符串,yn是否反黑
//输出:无
********************************************************************************/
void Print6(INT8U xx, INT8U yy, INT8U ch1[], INT8U yn)
{
INT8U ii = 0;
INT8U bb = 0;
unsigned int index = 0 ;
SetRamAddr(xx , yy);
while(ch1[bb] != '\0')
{
index = (unsigned int)(ch1[bb] - 0x20);
index = (unsigned int)index*6;
for(ii=0;ii<6;ii++)
{
if(yn)
{
Lcdwritedata(FontSystem6x8[index]);
}
else
{
Lcdwritedata(~FontSystem6x8[index]);
}
index += 1;
}
bb += 1;
}
}
上述程序中如何实现for()怎么循环啊? 不见ii变化啊?
|
|