//源程序
#include
#define MAXFLOOR 6
unsigned char code LED_CODES[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d};
//電梯外面的按鍵上下鍵
sbit F6D=P1^0;
sbit F1U=P1^1;
sbit F2D=P1^2;
sbit F2U=P1^3;
sbit F3D=P1^4;
sbit F3U=P1^5;
sbit F4D=P1^6;
sbit F4U=P1^7;
sbit F5D=P3^0;
sbit F5U=P3^1;
//電梯內(nèi)的按鍵
sbit F1=P2^0;
sbit F2=P3^3;
sbit F3=P3^4;
sbit F4=P3^5;
sbit F5=P2^1;
sbit F6=P2^2;
//指示燈
sbit le