Class Max44009
Driver for the Max44009 light-to-digital converter
Assembly: Max44009.dll
View Source
Declaration
public class Max44009 : ByteCommsSensorBase<Illuminance>, IObservable<IChangeResult<Illuminance>>, ISamplingSensor<Illuminance>, ISensor<Illuminance>, ISensor, ISamplingSensor, IDisposable, II2cPeripheral
Inheritance: System.Object
-> Meadow.Foundation.ObservableBase<UNIT>
Implements:
System.IObservable<Meadow.IChangeResult<Meadow.Units.Illuminance>>
, Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.Illuminance>
, Meadow.Peripherals.Sensors.ISensor<Meadow.Units.Illuminance>
, Meadow.Peripherals.Sensors.ISensor
, Meadow.Peripherals.Sensors.ISamplingSensor
, System.IDisposable
, Meadow.Hardware.II2cPeripheral
Properties
DefaultI2cAddress
The default I2C address for the peripheral
View Source
Declaration
public byte DefaultI2cAddress { get; }
Methods
Initialize()
Initialize the sensor
View Source
Declaration
protected void Initialize()
ReadSensor()
Reads data from the sensor
View Source
Declaration
protected override Task<Illuminance> ReadSensor()
Returns
System.Threading.Tasks.Task<Meadow.Units.Illuminance>
: The latest sensor reading
Implements
System.IObservable<Meadow.IChangeResult<Meadow.Units.Illuminance>>
Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.Illuminance>
Meadow.Peripherals.Sensors.ISensor<Meadow.Units.Illuminance>
Meadow.Peripherals.Sensors.ISensor
Meadow.Peripherals.Sensors.ISamplingSensor
System.IDisposable
Meadow.Hardware.II2cPeripheral