if3.c

来自「51常用子程序-4.0M.zip」· C语言 代码 · 共 21 行

C
21
字号
#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 + =
减小字号Ctrl + -
显示快捷键?