Versions in this module Expand all Collapse all v0 v0.27.0 Feb 26, 2024 v0.26.0 Sep 21, 2023 v0.25.0 Jun 11, 2023 v0.24.0 Feb 12, 2023 v0.23.0 Oct 1, 2022 v0.22.0 Aug 16, 2022 v0.21.0 Jul 5, 2022 v0.20.0 Apr 28, 2022 v0.19.0 Jan 26, 2022 v0.18.0 Nov 18, 2021 v0.17.1 Jul 1, 2021 v0.17.0 May 12, 2021 v0.16.0 May 12, 2021 v0.15.1 Mar 6, 2021 Changes in this version + const C + const ChecksumError + const DHT11 + const DHT22 + const F + const NoDataError + const NoSignalError + const UninitializedDataError + const UpdateError + type Device interface + Configure func(policy UpdatePolicy) + func New(pin machine.Pin, deviceType DeviceType) Device + func NewWithPolicy(pin machine.Pin, deviceType DeviceType, updatePolicy UpdatePolicy) Device + type DeviceType uint8 + type DummyDevice interface + Humidity func() (uint16, error) + HumidityFloat func() (float32, error) + Measurements func() (temperature int16, humidity uint16, err error) + ReadMeasurements func() error + Temperature func() (int16, error) + TemperatureFloat func(scale TemperatureScale) (float32, error) + func NewDummyDevice(pin machine.Pin, deviceType DeviceType) DummyDevice + type ErrorCode uint8 + func (e ErrorCode) Error() string + type TemperatureScale uint8 + type UpdatePolicy struct + UpdateAutomatically bool + UpdateTime time.Duration