Differences
This shows you the differences between two versions of the page.
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 6: | Line 6: | ||
DallasTemperature sensors(&oneWire);\\ | 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); |
} | } | ||