Bh1745 Class

Definition

Digital color sensor Bh1745.

public class Bh1745 : IDisposable
[System.Device.Model.Interface("Digital color sensor Bh1745.")]
public class Bh1745 : IDisposable
type Bh1745 = class
    interface IDisposable
[<System.Device.Model.Interface("Digital color sensor Bh1745.")>]
type Bh1745 = class
    interface IDisposable
Public Class Bh1745
Implements IDisposable
Inheritance
Bh1745
Attributes
Implements

Constructors

Bh1745(I2cDevice)

Digital color sensor Bh1745.

Fields

DefaultI2cAddress

The primary I2c address of the BH1745

SecondaryI2cAddress

The secondary I2c address of the BH1745

Properties

AdcGain

Gets or sets the adc gain of the sensor.

ChannelCompensationMultipliers

Gets or sets the channel compensation multipliers which are used to compensate the measurements.

HigherInterruptThreshold

Gets or sets the higher interrupt threshold.

InterruptIsEnabled

Gets or sets whether the interrupt pin is enabled.

InterruptPersistence

Gets or sets the persistence function of the interrupt.

InterruptReset

Gets or sets the state of the interrupt pin.

InterruptSignalIsActive

Gets whether the interrupt signal is active.

InterruptSource

Gets or sets the source channel of the interrupt.

LatchBehavior

Gets or sets how the interrupt pin latches.

LowerInterruptThreshold

Gets or sets the lower interrupt threshold.

MeasurementIsActive

Gets or sets whether the measurement is active.

MeasurementTime

Gets or sets the currently set measurement time.

Methods

Dispose()

Disposes the Bh1745 resources.

GetCompensatedColor()

Gets the compensated color reading from the sensor.

ReadBlueDataRegister()

Reads the blue data register of the sensor.

ReadClearDataRegister()

Reads the clear data register of the sensor.

ReadGreenDataRegister()

Reads the green data register of the sensor.

ReadMeasurementIsValid()

Reads whether the last measurement is valid.

ReadRedDataRegister()

Reads the red data register of the sensor.

Reset()

Resets the device to the default configuration. On reset the sensor goes to power down mode.

Extension Methods

MeasurementTimeAsTimeSpan(Bh1745)

Converts the enum Measurement time to a TimeSpan.

Applies to