Sbit k1= P31;
Sbitk2 = P3 0;
Void dealy (정수)
{
Int I, j;
For(I = k;; 나>0; 나-)
For (j =110; J>0; J-);
}
Void main ()
{
Int a = 0xff
If(K 1==0)
{
Dealy (500);
If(K 1==0)
{
그리고 (! (K2==0))
{
P2 = a;;
A = a>& gt 1;
Dealy (1000);
If(a==0x00)
{
P2 = 0x00;
Dealy (1000);
A = 0xff
}
}