C# Класс MirrorSUPINFO.Components.ComponentModel.Hardware.SparkFun_APDS9960_Helper

Provide functions to use the SparkFun_APDS9960 driver
Наследование: IDisposable
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
GestureTimer_Tick void
Initialize void
InitializeGestureTimer void
InitializeI2CAsync System.Threading.Tasks.Task
InitializeSensor void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetAmbientLight() публичный Метод

Gets a value that represents the ambiant light
public GetAmbientLight ( ) : int
Результат int

GetBlueLight() публичный Метод

Gets a value that represents the blue light
public GetBlueLight ( ) : int
Результат int

GetGreenLight() публичный Метод

Gets a value that represents the green light
public GetGreenLight ( ) : int
Результат int

GetProximity() публичный Метод

Gets a value that represents the proximity
public GetProximity ( ) : byte
Результат byte

GetRedLight() публичный Метод

Gets a value that represents the red light
public GetRedLight ( ) : int
Результат int

SparkFun_APDS9960_Helper() публичный Метод

Initialize a new instance of SparkFun_APDS9960_Helper
public SparkFun_APDS9960_Helper ( Mode mode ) : System
mode Mode The mode of the sensor
Результат System