Characteristic |
Locus |
Inheritance |
System.Object
> Tsl2591
|
Implements
|
System.IDisposable
|
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.Light |
Assembly |
Tsl2591.dll |
Syntax
public class Tsl2591 : IDisposable
Constructors
Tsl2591(II2cBus, Byte)
Declaration
public Tsl2591(II2cBus bus, byte address = 41)
Parameters
Type |
Name |
Description |
II2cBus |
bus |
|
System.Byte |
address |
|
Properties
Address
Declaration
public byte Address { get; }
Property Value
Type |
Description |
System.Byte |
|
ChangeThreshold
Declaration
public int ChangeThreshold { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Channel0
Reads the value of ADC Channel 0
Declaration
public int Channel0 { get; }
Property Value
Type |
Description |
System.Int32 |
|
Channel1
Reads the value of ADC Channel 1
Declaration
public int Channel1 { get; }
Property Value
Type |
Description |
System.Int32 |
|
DeviceID
Declaration
public int DeviceID { get; }
Property Value
Type |
Description |
System.Int32 |
|
IsSampling
Declaration
public bool IsSampling { get; }
Property Value
Type |
Description |
System.Boolean |
|
PackageID
Declaration
public int PackageID { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Dispose()
Dispose managed resources
Declaration
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
PowerOff()
Declaration
PowerOn()
Declaration
StartSampling(TimeSpan)
Declaration
public void StartSampling(TimeSpan samplePeriod)
Parameters
Type |
Name |
Description |
System.TimeSpan |
samplePeriod |
|
StopSampling()
Declaration
public void StopSampling()
Events
Channel0Changed
Declaration
public event Tsl2591.ValueChangedHandler Channel0Changed
Event Type
Channel1Changed
Declaration
public event Tsl2591.ValueChangedHandler Channel1Changed
Event Type