Skip to main content

Class Bh1900Nux

Represents a Bh1900Nux temperature sensor

Assembly: Bh1900Nux.dll
View Source
public class Bh1900Nux : ByteCommsSensorBase<Temperature>, IObservable<IChangeResult<Temperature>>, IDisposable, ITemperatureSensor, ISamplingSensor<Temperature>, ISensor<Temperature>, ISensor, ISamplingSensor, 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.Temperature>>, System.IDisposable, Meadow.Peripherals.Sensors.ITemperatureSensor, Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.Temperature>, Meadow.Peripherals.Sensors.ISensor<Meadow.Units.Temperature>, Meadow.Peripherals.Sensors.ISensor, Meadow.Peripherals.Sensors.ISamplingSensor, Meadow.Hardware.II2cPeripheral

Properties

Temperature

The current temperature

View Source
public Temperature? Temperature { get; }

DefaultI2cAddress

The default I2C address for the peripheral

View Source
public byte DefaultI2cAddress { get; }

MeasurementMode

The measurement mode

View Source
public Bh1900Nux.MeasurementModes MeasurementMode { get; set; }

FaultQueueDepth

The fault queue depth

View Source
public Bh1900Nux.FaultQueue FaultQueueDepth { get; set; }

AlertPolarity

The alert polarity

View Source
public Bh1900Nux.Polarity AlertPolarity { get; set; }

AlertIsActive

Is the alert active

View Source
public bool AlertIsActive { get; }

LowLimit

The temperature low limit

View Source
public Temperature LowLimit { get; set; }

HighLimit

The temperature high limit

View Source
public Temperature HighLimit { get; set; }

Methods

Reset()

Reset the sensor

View Source
public void Reset()

Sleep()

Set the sensor to sleep state

View Source
public void Sleep()

Wake()

Wake the device

View Source
public void Wake()

ReadSensor()

Read the temperature

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

System.Threading.Tasks.Task<Meadow.Units.Temperature>: The current temperature value

Implements

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