Skip to main content

Class Ags01Db

Represents an AGS01DB MEMS VOC gas / air quality sensor Pinout (left to right, label side down): VDD, SDA, GND, SCL Note: requires pull-up resistors on SDA/SCL

Assembly: Ags01Db.dll
View Source
public class Ags01Db : ByteCommsSensorBase<Concentration>, IObservable<IChangeResult<Concentration>>, ISamplingSensor<Concentration>, ISensor<Concentration>, ISensor, ISamplingSensor, IDisposable, II2cPeripheral

Inheritance: System.Object -> Meadow.Foundation.ObservableBase<UNIT> -> Meadow.Foundation.SamplingSensorBase<UNIT> -> Meadow.Foundation.PollingSensorBase<UNIT> -> Meadow.Foundation.ByteCommsSensorBase<UNIT>

Implements:
System.IObservable<Meadow.IChangeResult<Meadow.Units.Concentration>>, Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.Concentration>, Meadow.Peripherals.Sensors.ISensor<Meadow.Units.Concentration>, Meadow.Peripherals.Sensors.ISensor, Meadow.Peripherals.Sensors.ISamplingSensor, System.IDisposable, Meadow.Hardware.II2cPeripheral

Properties

Concentration

The current concentration value

View Source
public Concentration? Concentration { get; }

DefaultI2cAddress

The default I2C address for the peripheral

View Source
public byte DefaultI2cAddress { get; }

Methods

ReadSensor()

Get ASG01DB VOC Gas Concentration and update the Concentration property

View Source
protected override Task<Concentration> ReadSensor()
Returns

System.Threading.Tasks.Task<Meadow.Units.Concentration>

GetVersion()

Get ASG01DB Version

View Source
public byte GetVersion()
Returns

System.Byte: Version

Implements

  • System.IObservable<Meadow.IChangeResult<Meadow.Units.Concentration>>
  • Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.Concentration>
  • Meadow.Peripherals.Sensors.ISensor<Meadow.Units.Concentration>
  • Meadow.Peripherals.Sensors.ISensor
  • Meadow.Peripherals.Sensors.ISamplingSensor
  • System.IDisposable
  • Meadow.Hardware.II2cPeripheral