Show / Hide Table of Contents

Class ColorSensorREPL

Provides functionality for Adafruit circuitpyhton color sensors

Inheritance
System.Object
ColorSensorREPL
Implements
IColorSensor
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: Elatec.FCT.Client.Hardware
Assembly: ElatecFCT.dll
Syntax
public class ColorSensorREPL : IColorSensor

Constructors

View Source

ColorSensorREPL(CircuitPythonREPL)

Initializes a new instance of the ElatecFCT.Hardware.ColorSensor using a ColorSensor port

Declaration
public ColorSensorREPL(CircuitPythonREPL board)
Parameters
Type Name Description
CircuitPythonREPL board
View Source

ColorSensorREPL(CircuitPythonREPL, Int32)

Initializes a new instance of the ElatecFCT.Hardware.ColorSensor using a ColorSensor port

Declaration
public ColorSensorREPL(CircuitPythonREPL board, int channel)
Parameters
Type Name Description
CircuitPythonREPL board
System.Int32 channel

Fields

View Source

GAIN_16X

Declaration
public const int GAIN_16X = 16
Field Value
Type Description
System.Int32
View Source

GAIN_1X

Declaration
public const int GAIN_1X = 1
Field Value
Type Description
System.Int32
View Source

GAIN_4X

Declaration
public const int GAIN_4X = 4
Field Value
Type Description
System.Int32
View Source

GAIN_60X

Declaration
public const int GAIN_60X = 60
Field Value
Type Description
System.Int32

Methods

View Source

GetColor(Int32)

Get color sensor values

Declaration
public int GetColor(int waveLenght)
Parameters
Type Name Description
System.Int32 waveLenght

Color

Returns
Type Description
System.Int32

Color intensity

View Source

Init()

Color sensor code init via circuit python REPL. Default init

Declaration
public void Init()
View Source

Init(Int32, Int32)

Color sensor code init via circuit python REPL

Declaration
public void Init(int integrationTime, int gain)
Parameters
Type Name Description
System.Int32 integrationTime
System.Int32 gain

Implements

IColorSensor
  • View Source
In This Article
Back to top Generated by DocFX