Remarks

Based on https://github.com/adafruit/Adafruit_MLX90640 and https://github.com/melexis/mlx90640-library/tree/master/functions

Characteristic Locus
Inheritance System.Object > Mlx90640
Inherited Members System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace Meadow.Foundation.Sensors.Camera
Assembly Mlx90640.dll

Syntax

public class Mlx90640

Constructors

Mlx90640(II2cBus, Byte, Mlx90640.Units, Single)

Declaration
public Mlx90640(II2cBus i2cBus, byte address = 51, Mlx90640.Units measurementUnit = Mlx90640.Units.Celsius, float emissivity = 0.95F)

Parameters

Type Name Description
II2cBus i2cBus
System.Byte address
Mlx90640.Units measurementUnit
System.Single emissivity

Properties

Config

Declaration
public Mlx90640Config Config { get; }

Property Value

Type Description
Mlx90640Config

Emissivity

Declaration
public float Emissivity { get; set; }

Property Value

Type Description
System.Single

MeasurementUnit

Declaration
public Mlx90640.Units MeasurementUnit { get; set; }

Property Value

Type Description
Mlx90640.Units

ReflectedTemperature

Declaration
public float ReflectedTemperature { get; set; }

Property Value

Type Description
System.Single

SerialNumber

Declaration
public string SerialNumber { get; }

Property Value

Type Description
System.String

Methods

GetFrameData(ref UInt16[])

Declaration
protected virtual bool GetFrameData(ref ushort[] frameData)

Parameters

Type Name Description
System.UInt16[] frameData

Returns

Type Description
System.Boolean

GetMode()

Get the current reading pattern mode

Declaration
public Mlx90640.Mode GetMode()

Returns

Type Description
Mlx90640.Mode

Chess or Interleaved

GetRefreshRate()

Gets the Refresh rate

Declaration
public Mlx90640.RefreshRate GetRefreshRate()

Returns

Type Description
Mlx90640.RefreshRate

RefreshRate type

GetResolution()

Get the current resolution mode

Declaration
public Mlx90640.Resolution GetResolution()

Returns

Type Description
Mlx90640.Resolution

Resolution mode

I2CRead(Int32, UInt16, ref UInt16[])

Declaration
protected virtual void I2CRead(int startAddress, ushort readLen, ref ushort[] data)

Parameters

Type Name Description
System.Int32 startAddress
System.UInt16 readLen
System.UInt16[] data

I2CWrite(UInt16, UInt16)

Declaration
protected virtual bool I2CWrite(ushort writeAddress, ushort data)

Parameters

Type Name Description
System.UInt16 writeAddress
System.UInt16 data

Returns

Type Description
System.Boolean

Initialize()

Initialize the MLX90640. Read the MLX90640 serial number and EEProm

Declaration
public virtual void Initialize()

Read()

Gets all 768 sensor readings

Declaration
public float[] Read()

Returns

Type Description
System.Single[]

Float array containing each individual reading

SetMode(Mlx90640.Mode)

Set the reading pattern mode

Declaration
public void SetMode(Mlx90640.Mode mode)

Parameters

Type Name Description
Mlx90640.Mode mode

Chess or Interleaved

SetRefreshRate(Mlx90640.RefreshRate)

Sets the refresh rate

Declaration
public void SetRefreshRate(Mlx90640.RefreshRate rate)

Parameters

Type Name Description
Mlx90640.RefreshRate rate

RefreshRate type

SetResolution(Mlx90640.Resolution)

Sets the resolution

Declaration
public void SetResolution(Mlx90640.Resolution res)

Parameters

Type Name Description
Mlx90640.Resolution res

Resolution type