//row(范围1-4)判断第几行,column(范围0-7)判断第几列
void LCD_ShowString(uint8 row,uint8 column,uint8 num,uint8 *s)
{
uint8 Address;
if(row == 1)Address=0x80+column;
if(row == 2){Address=0x90+column;}
if(row == 3){Address=0x88+column;}
if(row == 4){Address=0x98+column;}
Write_Cmd(Address);
while(num)
{
Write_Data(*(s++));
num--;
}
}
现在想要column(范围0-15)应该怎么设置啊。谢谢
|