亚洲春色中文字幕久久久-三上亚,一吻二脱三床四吻胸,国产真实伦对白视频全集,在线毛片观看,精品成品入口黄网,国产毛aⅴ片久久久,亚洲AV色香蕉一区二区三区老师,萧皇后A级艳片,色情日本视频更新,99久久亚洲精品日本无码

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 781|回復: 0
打印 上一主題 下一主題
收起左側

18B20測量溫度

[復制鏈接]
跳轉到指定樓層
樓主
  1. /*
  2. 【Arduino】37種傳感器模塊系列實驗(39)
  3. 實驗三十九:DS18B20單總線數字溫度傳感器模塊
  4. */

  5. #include <OneWire.h>
  6. #include <DallasTemperature.h>

  7. #define ONE_WIRE_BUS 3

  8. OneWire oneWire(ONE_WIRE_BUS);

  9. DallasTemperature sensors(&oneWire);

  10. void setup(void)
  11. {
  12.   Serial.begin(9600);
  13.   Serial.println("Dallas Temperature IC Control Library Demo");

  14.   sensors.begin();
  15. }

  16. void loop(void)
  17. {
  18.   Serial.print(" Requesting temperatures...");
  19.   sensors.requestTemperatures();
  20.   Serial.println("DONE");

  21.   Serial.print("Temperature for Device 1 is: ");
  22.   Serial.print(sensors.getTempCByIndex(0));  
  23.   
  24.   delay(500);
  25. }
復制代碼
⸮Dallas Temperature IC Control Library Demo
Requesting temperatures...DONE
Temperature for Device 1 is: 22.31 Requesting temperatures...DONE
Temperature for Device 1 is: 22.37 Requesting temperatures...DONE
Temperature for Device 1 is: 22.31 Requesting temperatures...DONE
Temperature for Device 1 is: 22.31 Requesting temperatures...DONE
Temperature for Device 1 is: 22.37 Requesting temperatures...DONE
Temperature for Device 1 is: 22.37 Requesting temperatures...DONE
Temperature for Device 1 is: 22.37 Requesting temperatures...DONE



950.jpg (491.75 KB, 下載次數: 0)

950.jpg
分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表