weatherbox:team_nova:temperature_code

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
weatherbox:team_nova:temperature_code [2016/03/17 23:25]
tyamauchi created
weatherbox:team_nova:temperature_code [2021/09/19 21:59] (current)
Line 1: Line 1:
-#include <​OneWire.h>​ +#include <​OneWire.h>​\\ 
-#include <​DallasTemperature.h>​+#include <​DallasTemperature.h>​\\
  
-// Setup a oneWire instance to communicate with any OneWire ​devices ​(not just Maxim/​Dallas temperature ICs+OneWire ​oneWire(A2);\\ 
-OneWire oneWire(A2);+  
 +DallasTemperature sensors(&​oneWire);\\
  
-// Pass our oneWire reference to Dallas Temperature. ​ 
-DallasTemperature sensors(&​oneWire);​ 
  
-// arrays to hold device address +DeviceAddress insideThermometer;​\\
-DeviceAddress insideThermometer;​+
  
 void setup() { void setup() {
-  // put your setup code here, to run once: 
   Serial.begin(9600);​   Serial.begin(9600);​
- 
   sensors.begin();​   sensors.begin();​
- +  //set the address to take temperatures 
-  sensors.getAddress(insideThermometer,​ 0); //set the address to take temperatures+  sensors.getAddress(insideThermometer,​ 0); 
 } }
  
  • weatherbox/team_nova/temperature_code.1458257145.txt.gz
  • Last modified: 2021/09/19 21:59
  • (external edit)