Tsl256x Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Light to Digital Converter TSL2560 and TSL2561
[System.Device.Model.Interface("Light to Digital Converter TSL2560 and TSL2561")]
public class Tsl256x : IDisposable
[<System.Device.Model.Interface("Light to Digital Converter TSL2560 and TSL2561")>]
type Tsl256x = class
interface IDisposable
Public Class Tsl256x
Implements IDisposable
- Inheritance
-
Tsl256x
- Attributes
- Implements
Constructors
Tsl256x(I2cDevice, PackageType) |
Initializes a new instance of the Iot.Device.Tsl256x.Tsl256x class. |
Fields
DefaultI2cAddress |
When the address select pin if float |
SecondI2cAddress |
When the address select pin is to ground |
ThirdI2cAddress |
When the select pin is to VDD |
Properties
Enabled |
Set power On or Off |
Gain |
Get or Set the gain |
IntegrationTime |
Get or Set the integration time |
InterruptControl |
Get or Set the interrupt Control Select |
InterruptPersistence |
Get or Set the interrupt Persistence Select |
Version |
Get the version 0 for major for TSL2560 and 1 for TSL2561, minor is devision number |
Methods
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
GetIlluminance() |
Get the calculated Illuminance. Default range is Lux |
GetRawChannels(UInt16, UInt16) |
Get the raw data from both channels |
GetRawLuminosity(Channel) |
Get the raw luminosity for a specific channel |
MeasureAndGetIlluminance() |
Measure the illuminance, will wait for the measurement based on integration time |
SetThreshold(UInt16, UInt16) |
This will set the threshold and enable the interrupt |
StartManualIntegration() |
Start the manual integration |
StopManualIntegration() |
Stop the manual integration |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for