@@ -54,14 +54,14 @@ int analogPin1 = 1;
5454#include < DallasTemperature.h>
5555/* *******************************************************************/
5656// Data wire is plugged into pin 2 on the Arduino
57- #define ONE_WIRE_BUS 13
57+ // #define ONE_WIRE_BUS 13
5858/* *******************************************************************/
5959// Setup a oneWire instance to communicate with any OneWire devices
6060// (not just Maxim/Dallas temperature ICs)
61- OneWire oneWire (ONE_WIRE_BUS);
61+ // OneWire oneWire(ONE_WIRE_BUS);
6262/* *******************************************************************/
6363// Pass our oneWire reference to Dallas Temperature.
64- DallasTemperature sensors (&oneWire);
64+ // DallasTemperature sensors(&oneWire);
6565/* *******************************************************************/
6666
6767
@@ -92,7 +92,7 @@ void setup()
9292 Serial.begin (9600 );
9393 Serial.println (" Dallas Temperature IC Control Library Demo" );
9494 // Start up the library
95- sensors.begin ();
95+ // sensors.begin();
9696 // //////////////////////////////////////////////////////////////////////////
9797
9898}
@@ -182,17 +182,16 @@ void loop()
182182 // request to all devices on the bus
183183 /* *******************************************************************/
184184 // Serial.print(" Requesting temperatures...");
185- sensors.requestTemperatures (); // Send the command to get temperature readings
185+ // sensors.requestTemperatures(); // Send the command to get temperature readings
186186 // Serial.println("DONE");
187187 /* *******************************************************************/
188188 // Serial.print("Temperature is: ");
189- lcd.setCursor (11 , 1 );
190- lcd.print (" " );
191- lcd.setCursor (11 , 1 );
192- lcd.print (sensors.getTempCByIndex (0 )); // Why "byIndex"?
189+ // lcd.setCursor (11, 1);
190+ // lcd.print(" ");
191+ // lcd.setCursor (11, 1);
192+ // lcd.print(sensors.getTempCByIndex(0)); // Why "byIndex"?
193193 // You can have more than one DS18B20 on the same bus.
194194 // 0 refers to the first IC on the wire
195- delay (750 ); // 18B20 need 750ms sampling time
195+ // delay(750); // 18B20 need 750ms sampling time
196196
197197}
198-
0 commit comments