51学习5~~独立键盘
0赞
发表于 6/21/2010 2:55:07 PM
阅读(4456)
#include <AT89X51.H>
uchar ;code table[]={
0xc0,0xf9,0xa4,0xb0,
0x99,0x92,0x82,0xf8,
0x80,0x90,0x88,0x83,
0xc6,0xa1,0x86,0x8e,0};
unsigned char count;
void delay10ms(void)
{
unsigned char i,j;
for(i=20;i>0;i--)
for(j=248;j>0;j--);
}
void main(void)
{
P1=0xf8;
}
