#ifndef __KEY_H
#define __KEY_H
#include <reg52.h>
sbit KEY1=P1^0;
sbit KEY2=P1^1;
sbit KEY3=P1^2;
sbit KEY4=P1^3;
sbit KEY5=P1^4;
sbit KEY6=P1^5;
sbit KEY7=P1^6;
sbit KEY8=P1^7;
void key_scan(void);
void key_action(void);
void key_specific_action(u8 i);
#endif
#define __KEY_H
#include <reg52.h>
sbit KEY1=P1^0;
sbit KEY2=P1^1;
sbit KEY3=P1^2;
sbit KEY4=P1^3;
sbit KEY5=P1^4;
sbit KEY6=P1^5;
sbit KEY7=P1^6;
sbit KEY8=P1^7;
void key_scan(void);
void key_action(void);
void key_specific_action(u8 i);
#endif