文件名称:Text2
介绍说明--下载内容均来自于网络,请自行研究使用
#include<reg51.h>void delay(unsigned int z) //声明延时函数sbit beep=P2^7 void main()数{ while(1){ beep=0 //蜂鸣器响 delay(1) //调用1ms延时 beep=1 //蜂鸣器不响 delay(1) //调用1ms延时 }}void delay(unsigned int z)//1ms延时,通过z值改变延时{ unsigned int x for( z>0 z--) for(x=110 x>0 x--) }-# include <reg51.h> void delay (unsigned int z) // Delay function statement sbit beep = P2 ^ 7 void main () the number of (while (1) (beep = 0 // buzzer ring delay (1) // call 1ms delay beep = 1 // buzzer did not ring delay (1) // call the 1ms delay)) void delay (unsigned int z)// 1ms delay, change the delay through the z value (unsigned int x for ( z> 0 z-) for (x = 110 x> 0 x-) )
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Text2.C