📄 autopiano.c
字号:
P2=table[4];
delay1();
delay1();
delay1();
delay1(); //55 6 5 1 7-
STH0=tab[2]/256;
STL0=tab[2]%256;
P2=table[2];
delay1();
STH0=tab[2]/256;
STL0=tab[2]%256;
P2=table[2];
delay1();
STH0=tab[3]/256;
STL0=tab[3]%256;
P2=table[3];
delay1();
delay1();
STH0=tab[2]/256;
STL0=tab[2]%256;
P2=table[2];
delay1();
delay1();
STH0=tab[6]/256;
STL0=tab[6]%256;
P2=table[6];
delay1();
delay1();
STH0=tab[5]/256;
STL0=tab[5]%256;
P2=table[5];
delay1();
delay1();
delay1();
delay1();//55 6 5 2 1-
STH0=tab[2]/256;
STL0=tab[2]%256;
P2=table[2];
delay1();
STH0=tab[2]/256;
STL0=tab[2]%256;
P2=table[2];
delay1();
STH0=tab[9]/256;
STL0=tab[9]%256;
P2=table[9];
delay1();
delay1();
STH0=tab[7]/256;
STL0=tab[7]%256;
P2=table[7];
delay1();
delay1();
STH0=tab[5]/256;
STL0=tab[5]%256;
P2=table[5];
delay1();
delay1();
STH0=tab[4]/256;
STL0=tab[4]%256;
P2=table[4];
delay1();
delay1();
STH0=tab[3]/256;
STL0=tab[3]%256;
P2=table[3];
delay1();
delay1();
delay1();
delay1();
STH0=tab[8]/256;
STL0=tab[8]%256;
P2=table[8];
delay1();
STH0=tab[8]/256;
STL0=tab[8]%256;
P2=table[8];
delay1();
STH0=tab[7]/256;
STL0=tab[7]%256;
P2=table[7];
delay1();
delay1();
STH0=tab[5]/256;
STL0=tab[5]%256;
P2=table[5];
delay1();
delay1();
STH0=tab[6]/256;
STL0=tab[6]%256;
P2=table[6];
delay1();
delay1();
STH0=tab[5]/256;
STL0=tab[5]%256;
P2=table[5];
delay1();
delay1();
cnt++;
TR0=0;break;
}
/* if(cnt==1) //死了都要爱
{
STH0=tab[7]/256;
STL0=tab[7]%256;
TR0=1;
P2=table[7];
delay1();
STH0=tab[12]/256;
STL0=tab[12]%256;
P2=table[12];
delay1();
delay1();
STH0=tab[12]/256;
STL0=tab[12]%256;
P2=table[12];
delay1();
STH0=tab[12]/256;
STL0=tab[12]%256;
P2=table[12];
delay1();
STH0=tab[12]/256;
STL0=tab[12]%256;
P2=table[12];
delay1();
delay1();
delay1();
STH0=tab[13]/256;
STL0=tab[13]%256;
P2=table[13];
delay1();
STH0=tab[11]/256;
STL0=tab[11]%256;
P2=table[11];
delay1();
STH0=tab[10]/256;
STL0=tab[10]%256;
P2=table[10];
delay1();
STH0=tab[9]/256;
STL0=tab[9]%256;
P2=table[9];
delay1();
STH0=tab[8]/256;
STL0=tab[8]%256;
P2=table[8];
delay1();
STH0=tab[6]/256;
STL0=tab[6]%256;
P2=table[6];
delay1();
STH0=tab[7]/256;
STL0=tab[7]%256;
P2=table[7];
delay1();
cnt=0;
TR0=0;break;
} */
}//while
else
{
temp=P3;
P2=table[key];
STH0=tab[key]/256;
STL0=tab[key]%256;
TR0=1;
temp=temp & 0x0f;
while(temp!=0x0f)
{
temp=P3;
temp=temp & 0x0f;
}
TR0=0;
}
}
}
}
}
void t0(void) interrupt 1 using 0
{
TH0=STH0;
TL0=STL0;
P1_0=~P1_0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -