摘要:
1.主代码: /* 温度传感器 */#include "DS18B20.h"#include"def.h"u16 get_temp (void){ float tt; u16 temp; u8 a,b; ds_delay(40); dsic_init(); write_byte(0xcc); wri 阅读全文
posted @ 2016-12-26 11:32
王小波私人定制
阅读(471)
评论(0)
推荐(0)
摘要:
1.代码: #include<reg52.h>typedef unsigned char u8;typedef unsigned int u16;void delay (u16 num){ u16 x,y; for (x=num; x>0; x--) for (y=110; y>0; y--);}v 阅读全文
posted @ 2016-12-26 10:13
王小波私人定制
阅读(654)
评论(0)
推荐(0)

浙公网安备 33010602011771号