pstolarz / OneWireNg

Arduino 1-wire service library. OneWire compatible. Dallas thermometers support.
BSD 2-Clause "Simplified" License
89 stars 20 forks source link

DS18B20 on multiple pins? #19

Closed VladimirVecera closed 3 years ago

VladimirVecera commented 3 years ago

What would the onewire code look like if I have a DS18B20 thermometer connected to multiple pins?

pstolarz commented 3 years ago

If you use OneWire lib and it worked fine until ESP Arduino 2.0 simply replace OneWire with OneWireNg. Use this fork of DallasTemperature instead of the original one. This should fix your issues.

VladimirVecera commented 3 years ago

Pokud používáte OneWire lib a fungovalo to dobře, dokud ESP Arduino 2.0 jednoduše nahradí OneWire OneWireNg. Použijte tuto vidlici DallasTemperature místo původní. To by mělo vyřešit vaše problémy.

If I understand that, I have an existing OneWire, which newly displays an error on ESP32 (2.0.0), I have to delete it and install OneWireNG. But I already use your library, so is it necessary to change the OneWire library to OneWireNG? I'm so sorry, but I'd rather write. https://github.com/pstolarz/Arduino-Temperature-Control-Library

pstolarz commented 3 years ago

By replacing the libs by my versions you will be sure no conflicts appear.