Method | Description | |
---|---|---|
EV3ColorSensor ( BrickPortSensor port ) : System |
Initialize an EV3 Color Sensor
|
|
EV3ColorSensor ( BrickPortSensor port, ColorSensorMode mode ) : System |
Initialize an EV3 Color Sensor
|
|
EV3ColorSensor ( BrickPortSensor port, ColorSensorMode mode, int timeout ) : System |
Initilaize an EV3 Color Sensor
|
|
GetSensorName ( ) : string | ||
NumberOfModes ( ) : int | ||
Read ( ) : int |
Read the intensity of the reflected or ambient light in percent. In color mode the color index is returned
|
|
ReadAsString ( ) : string | ||
ReadColor ( ) : System.Color |
Reads the color.
|
|
ReadRGBColor ( ) : |
Reads the color of the RGB.
|
|
ReadRaw ( ) : int | ||
ReadTest ( ) : string | ||
SelectNextMode ( ) : void | ||
SelectPreviousMode ( ) : void | ||
SelectedMode ( ) : string | ||
UpdateSensor ( object state ) : void |
Update the sensor and this will raised an event on the interface
|
Method | Description | |
---|---|---|
CalculateColor ( ) : System.Color | ||
CalculateRawAverage ( ) : int | ||
CalculateRawAverageAsPct ( ) : int | ||
GetEV3Mode ( ColorSensorMode mode ) : BrickSensorType | ||
GetRawValues ( ) : void | ||
OnPropertyChanged ( string name ) : void | ||
StopTimerInternal ( ) : void |
public EV3ColorSensor ( BrickPortSensor port ) : System | ||
port | BrickPortSensor | Sensor port |
return | System |
public EV3ColorSensor ( BrickPortSensor port, ColorSensorMode mode ) : System | ||
port | BrickPortSensor | Sensor port |
mode | ColorSensorMode | Color mode |
return | System |
public EV3ColorSensor ( BrickPortSensor port, ColorSensorMode mode, int timeout ) : System | ||
port | BrickPortSensor | Sensor port |
mode | ColorSensorMode | Color mode |
timeout | int | Period in millisecond to check sensor value changes |
return | System |