C# Class MirrorSUPINFO.Components.ComponentModel.Hardware.SparkFun_APDS9960_Helper

Provide functions to use the SparkFun_APDS9960 driver
Inheritance: IDisposable
Afficher le fichier Open project: veler/MirrorSUPINFO

Private Properties

Свойство Type Description
GestureTimer_Tick void
Initialize void
InitializeGestureTimer void
InitializeI2CAsync System.Threading.Tasks.Task
InitializeSensor void

Méthodes publiques

Méthode Description
Dispose ( ) : void
GetAmbientLight ( ) : int

Gets a value that represents the ambiant light

GetBlueLight ( ) : int

Gets a value that represents the blue light

GetGreenLight ( ) : int

Gets a value that represents the green light

GetProximity ( ) : byte

Gets a value that represents the proximity

GetRedLight ( ) : int

Gets a value that represents the red light

SparkFun_APDS9960_Helper ( Mode mode ) : System

Initialize a new instance of SparkFun_APDS9960_Helper

Private Methods

Méthode Description
GestureTimer_Tick ( object sender, object e ) : void
Initialize ( Mode mode ) : void

Initialize everything

InitializeGestureTimer ( ) : void

Initialize the timer if the mode of the sensor is in Gesture

InitializeI2CAsync ( ) : System.Threading.Tasks.Task

Initialize the device

InitializeSensor ( Mode mode ) : void

Initialize the sensor

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetAmbientLight() public méthode

Gets a value that represents the ambiant light
public GetAmbientLight ( ) : int
Résultat int

GetBlueLight() public méthode

Gets a value that represents the blue light
public GetBlueLight ( ) : int
Résultat int

GetGreenLight() public méthode

Gets a value that represents the green light
public GetGreenLight ( ) : int
Résultat int

GetProximity() public méthode

Gets a value that represents the proximity
public GetProximity ( ) : byte
Résultat byte

GetRedLight() public méthode

Gets a value that represents the red light
public GetRedLight ( ) : int
Résultat int

SparkFun_APDS9960_Helper() public méthode

Initialize a new instance of SparkFun_APDS9960_Helper
public SparkFun_APDS9960_Helper ( Mode mode ) : System
mode Mode The mode of the sensor
Résultat System