robert-hh / Onewire_DS18X20

Classes for driving the DS18x20 sensor with the onewire protocol for Pycom MicroPython
11 stars 6 forks source link

Improve methods wrt. sensor selection, resolve #2. #5

Closed amotl closed 4 years ago

amotl commented 4 years ago

We believe the methods start_conversion and read_temp_async should always obtain a ROM address for addressing a specific device and not fall back to the first device within the list of all attached sensors in order to improve the deterministic behavior of this library.

robert-hh commented 4 years ago

Let's combine both approaches: If there is only one device on the bus, the rom parameters may be left empty. Otherwise it has to be given.

robert-hh commented 4 years ago

I'm closing that too, because it will be obsolete.