发表于:2021/8/22 21:01:17
#16楼
void WR_ASCII(unsigned char X)
{
switch(X)
{
case 0:
Send_ASCII("0",0);
break;
case 1:
Send_ASCII("1",0);
break;
case 2:
Send_ASCII("2",0);
break;
case 3:
Send_ASCII("3",0);
break;
case 4:
Send_ASCII("4",0);
break;
case 5:
Send_ASCII("5",0);
break;
case 6:
Send_ASCII("6",0);
break;
case 7:
Send_ASCII("7",0);
break;
case 8:
Send_ASCII("8",0);
break;
case 9:
Send_ASCII("9",0);
break;
case 10:
Send_ASCII("a",0);
break;
case 11:
Send_ASCII("b",0);
break;
case 12:
Send_ASCII("c",0);
break;
case 13:
Send_ASCII("d",0);
break;
case 14:
Send_ASCII("e",0);
break;
case 15:
Send_ASCII("f",0);
break;
default:
break;
}
}
void WR_HEX(unsigned char N)
{
unsigned char H,L;
H=N;
L=N;
L&=0x0f;
H&=0xf0;
H>>=4;
WR_ASCII(H);//显示高4位
WR_ASCII(L);//显示低4位
}
遇到SB,请不要和他争辩,认同他所有的观点,让他变成一个大SB。