62
833
1625
金牌会员
使用道具 举报 送花
40
2412
3264
荣誉版主
晓*** 发表于 2024-5-18 11:08 别弄DS18B20了,来试试国产的单线温度传感器NST1001吧,精度更高,编程更简单。 https://www.stcaimcu.com/ ...
void DS18b20_Reset(void) //复位 { bit flag = 1; while( flag ) { DQ = 0; //输出低电平 Delay480us(); DQ = 1; //输出高电平 Delay60us(); flag = DQ; //读取当前电平 Delay480us(); } } 复制代码
void DS18b20_Reset(void) //复位 { bit flag = 1; while( flag ) { DQ = 0; //输出低电平 Delay480us(); DQ = 1; //输出高电平 Delay60us(); flag = DQ; //读取当前电平 Delay480us(); } }复制代码
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|深圳国芯人工智能有限公司 ( 粤ICP备2022108929号-2 )
GMT+8, 2025-8-26 01:11 , Processed in 0.130157 second(s), 93 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.