adafruit_ds18x20
¶
Driver for Dallas 1-Wire temperature sensor.
- Author(s): Carter Nelson
-
class
adafruit_ds18x20.
DS18X20
(bus, address)[source]¶ Class which provides interface to DS18X20 temperature sensor.
-
read_temperature
()[source]¶ Read the temperature. No polling of the conversion busy bit (assumes that the conversion has completed).
-
resolution
¶ The programmable resolution. 9, 10, 11, or 12 bits.
-
start_temperature_read
()[source]¶ Start asynchronous conversion, returns immediately. Returns maximum conversion delay [seconds] based on resolution.
-
temperature
¶ The temperature in degrees Celsius.
-