资料介绍
八路抢答器的程序
/*************************************************************
按键说明??
*************************************************************/
#include
/*-----------------------------------------------------------
宏定??
------------------------------------------------------------*/
#define uint unsigned int
#define uchar unsigned char
/*-----------------------------------------------------------
------------------------------------------------------------*/
unsigned char code table[]={0xc0,0xf9,0xa4,0xb0,0x99,
0x92,0x82,0xf8,0x80,0x90,0x77,0x7c,0x39,0x5e,0x79,0x71};
/*-----------------------------------------------------------
按键端口定义
------------------------------------------------------------*/
sbit reset = P3^7; //系统复位按键
sbit UP = P2^5; //??