Update DallasTemperatureSensor.ino

This commit is contained in:
Kolbi
2015-06-17 14:34:43 +02:00
parent 938ade8823
commit 8d7d63dfd9
@@ -33,7 +33,7 @@
#define MAX_ATTACHED_DS18B20 16 #define MAX_ATTACHED_DS18B20 16
unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds) unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds)
OneWire oneWire(ONE_WIRE_BUS); // Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs) OneWire oneWire(ONE_WIRE_BUS); // Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
DallasTemperature sensors(&oneWire); // Pass our oneWire reference to Dallas Temperature. DallasTemperature sensors(&oneWire); // Pass the oneWire reference to Dallas Temperature.
MySensor gw; MySensor gw;
float lastTemperature[MAX_ATTACHED_DS18B20]; float lastTemperature[MAX_ATTACHED_DS18B20];
int numSensors=0; int numSensors=0;