weatherbox:team_nova:temperature_code

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
weatherbox:team_nova:temperature_code [2016/03/17 23:26]
tyamauchi
weatherbox:team_nova:temperature_code [2021/09/19 21:59] (current)
Line 2: Line 2:
 #include <​DallasTemperature.h>​\\ #include <​DallasTemperature.h>​\\
  
-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.1458257181.txt.gz
  • Last modified: 2021/09/19 21:59
  • (external edit)