PaulStoffregen / OneWire

Library for Dallas/Maxim 1-Wire Chips
http://www.pjrc.com/teensy/td_libs_OneWire.html
579 stars 382 forks source link

ESP32 doesn't work in parasistic mode #95

Closed plop3 closed 3 years ago

plop3 commented 3 years ago

Description

In the last version 2.3.5, parasistic mode doesn't work with DallasTemperature (with simple sketch). I think a delay is missing (the serial console scroll quickly). Values are 85 The 2.3.0 version has not the problem. Works fine. Serial console scroll slowy and the values are good. The DS18x20_Temperature, it's work fine with the two versions (2.3.0, 2.3.5)

Steps To Reproduce Problem

Launch the "simple" sketch (DallasTemperature). OneWire version 2.3.0 of OneWire: OK OneWire version 2.3.5 of OneWire: KO

Hardware & Software

Board: ESP32 D1 Shields: DS18S20 / DS18B20 Arduino: IDE 1.8.13 Version info & package name (from Tools > Boards > Board Manager) DallasTemperature: 3.8.0 OneWire: 2.3.0, 2.3.5 Operating system & version: Linux Ubuntu 20.04

Arduino Sketch

DS18x20_Temperature (OneWire) simple (DallasTemperature)

Errors or Incorrect Output

Incorrect temperature with "simple" sktech (85) and version 2.3.5

plop3 commented 3 years ago

Sorry, i've used a bad board definition (NODEMCU-32S instead ESP32-DEV With the good borad definition, it works.