#ifndef__KEY_H__#define__KEY_H__#include"delay.h"ucharkeys_scan(){delay(10);ucharkeyno=0;P1DIR=0Xf0;//高四位输出,低四位输入P1OUT=0xef;switch(P1IN&0x0f)