#include // 试试
sbit KYE0=P1^0;
sbit KYE1=P1^1;
sbit KYE2=P1^2;
sbit KYE3=P1^3;
sbit LED0=P1^4;
sbit LED1=P1^5;
sbit LED2=P1^6;
sbit LED3=P1^7;
main()
{
while(1)
{
LED0=KYE0;
LED1=KYE1;
LED2=KYE2;
LED3=KYE3;
}
}
#include // 试试
sbit KYE0=P1^0;
sbit KYE1=P1^1;
sbit KYE2=P1^2;
sbit KYE3=P1^3;
sbit LED0=P1^4;
sbit LED1=P1^5;
sbit LED2=P1^6;
sbit LED3=P1^7;
main()
{
while(1)
{
LED0=KYE0;
LED1=KYE1;
LED2=KYE2;
LED3=KYE3;
}
}