correct DH18B20 pin number

This commit is contained in:
Glyn Hudson 2016-09-26 17:18:08 +01:00
parent 4ace696365
commit 31a49ea3ac
2 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
# Board
![board](emonth_V2.0.1_brd.png)
![board](emonth_V2.0.2_brd.png)
# Schematic
![emonTH V2 schematic](emonth_V2.0.1_sch.png)
![emonTH V2 schematic](emonth_V2.0.s_sch.png)
# Change log

View File

@ -99,7 +99,7 @@ const byte DIP_switch1= 7;
const byte DIP_switch2= 8;
const byte pulse_countINT= 1; // INT 1 / Dig 3 Screw Terminal Block Number 4 on emonTH V1.5 - Change to INT0 DIG2 on emonTH V1.4
const byte pulse_count_pin=3; // INT 1 / Dig 3 Screw Terminal Block Number 4 on emonTH V1.5 - Change to INT0 DIG2 on emonTH V1.4
#define ONE_WIRE_BUS 16 // D19 emonTH V1.5
#define ONE_WIRE_BUS 17 // D19 emonTH V1.5
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
@ -335,7 +335,7 @@ void loop()
Serial.print("temp:");Serial.print(emonth.temp); Serial.print(",");
if (DS18B20){
Serial.print("temp_ex:");Serial.print(emonth.temp_external); Serial.print(",");
Serial.print("tempex:");Serial.print(emonth.temp_external); Serial.print(",");
}
if (SI7021_status){