AhtBase Class

Definition

Base class for common functions of the AHT10/15 and AHT20 sensors.

public abstract class AhtBase : IDisposable
[System.Device.Model.Interface("AHTxx temperature and humidity sensor")]
public abstract class AhtBase : IDisposable
type AhtBase = class
    interface IDisposable
[<System.Device.Model.Interface("AHTxx temperature and humidity sensor")>]
type AhtBase = class
    interface IDisposable
Public MustInherit Class AhtBase
Implements IDisposable
Inheritance
AhtBase
Derived
Attributes
Implements

Constructors

AhtBase(I2cDevice, Byte)

Initializes a new instance of the binding for a sensor connected through I2C interface.

Fields

DefaultI2cAddress

Address of AHT10/15/20 device (0x38). This address is fix and cannot be changed. This implies that only one device can be attached to a single I2C bus at a time.

Methods

Dispose()

Provides a mechanism for releasing unmanaged resources.

Dispose(Boolean)

Provides a mechanism for releasing unmanaged resources.

GetHumidity()

Gets the current relative humidity reading from the sensor. Reading the humidity takes between 10 ms and 80 ms.

GetTemperature()

Gets the current temperature reading from the sensor. Reading the temperature takes between 10 ms and 80 ms.

Applies to