全文预览

51单片机c语言经典事例程

上传者:塑料瓶子 |  格式:pdf  |  页数:97 |  大小:12198KB

文档介绍
);void set_time();\r"#16.3.1$%TX-1C&'()*DS18B20+,-.@/\r0+123C 456(part4.3P349)\r#include &lt;reg52.h&gt;\r#include &lt;stdio.h&gt;\r#define uchar unsigned char\r#define uint unsigned int\rsbit ds=P2i ; +,-.@89:\rsbit dula=P2-; 6;<=:\rsbit wela=P2> ; 6;\n=:\rsbit beep=P2 L ;  0@\ruint temp;\rfloat Ltemp;\ruint warn>1=260;\ruint warn_12=250;\ruint warn_h 1=300;\ruint warn_h2=320;\rsbit led0=Pl ;\rsbit ledl=Pl r ?\rsbit led2=Pli ;\rsbit led3=Pl L ;\runsigned char code table[]={\r0x3f,0x06,0x5b,0x4f,\r0x66,0x6d,0x7d,0x07,\r0x7f,0x6f,0xbf,0x86,\r0xdb,0xcf,0xe6,0xed,\r0xfd,0x87,0xff,0xef); //ABCD*E6.\rvoid delay(uint z)FG\r(\ruint x,y;\rfor(x=z;x&gt;0;x-)\rfor(y=110;y&gt;0;y-);\r-108-

收藏

分享

举报
下载此文档