mikaelpatel / Arduino-OWI

One Wire Interface (OWI) library for Arduino
https://mikaelpatel.github.io/Arduino-OWI/
61 stars 15 forks source link

Improve DS18B20 device driver #3

Open mikaelpatel opened 6 years ago

mikaelpatel commented 6 years ago
  1. Allow sensor polling instead of delay time based wait for conversion to complete.
  2. Allow relevant commands to be called without MATCH_ROM i.e. in SEARCH_ROM sequence.
  3. Add support for parasite powering of devices.
  4. Refactor and add sensor collection level; i.e. DS18B20 would handle the sensor collection level and DS18B20::Device would handle the individual level.
    DS18B20 sensor(owi);
    sensor[0].temperature();
mikaelpatel commented 6 years ago

1 and 2, see commit https://github.com/mikaelpatel/Arduino-OWI/commit/0e82888b635d4b92474f73f2b4e96f641f960995.