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

Provide functions to use the SparkFun_APDS9960 driver
Inheritance: IDisposable
Mostra file Open project: veler/MirrorSUPINFO

Private Properties

Property Type Description
GestureTimer_Tick void
Initialize void
InitializeGestureTimer void
InitializeI2CAsync System.Threading.Tasks.Task
InitializeSensor void

Public Methods

Method 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

Method 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 method

public Dispose ( ) : void
return void

GetAmbientLight() public method

Gets a value that represents the ambiant light
public GetAmbientLight ( ) : int
return int

GetBlueLight() public method

Gets a value that represents the blue light
public GetBlueLight ( ) : int
return int

GetGreenLight() public method

Gets a value that represents the green light
public GetGreenLight ( ) : int
return int

GetProximity() public method

Gets a value that represents the proximity
public GetProximity ( ) : byte
return byte

GetRedLight() public method

Gets a value that represents the red light
public GetRedLight ( ) : int
return int

SparkFun_APDS9960_Helper() public method

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