📄 if3.c
字号:
#include<at89x51.h>
void Ledon(void);
void Ledoff(void);
void Ifdemo3(void)
{Byte Fgpulse;
if(Fgpulse==0)
{if(P1_7==0)
{Fgpulse=1;
Ledon();
}
else
{Fgpulse=0;
Ledoff();
}
}
else
{if(P1_7!=0)
Fgpulse=0;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -