|
int | CalculateRawAverage () |
|
int | CalculateRawAverageAsPct () |
|
void | GetRawValues () |
|
void | GetColorData () |
|
Color | CalculateColor () |
|
void | SetMode (AnalogMode mode) |
|
Int16 | ReadPin1AsPct () |
|
int | ReadPin6AsPct () |
|
int | ReadPin1As10Bit () |
| Reads the value of pin 1 converted to 10 bit More...
|
|
int | ReadPin1 () |
|
int | ReadPin5 () |
|
int | ReadPin6 () |
|
byte[] | ReadBytes (int offset, int length) |
|
|
const int | ADCResolution = 4095 |
|
const int | NumberOfSensorPorts = SensorManager.NumberOfSensorPorts |
|
SensorPort | port |
|
MonoBrickFirmware.Sensors.NXTColorSensor.NXTColorSensor |
( |
SensorPort |
port | ) |
|
|
inline |
override string MonoBrickFirmware.Sensors.NXTColorSensor.GetSensorName |
( |
| ) |
|
|
inlinevirtual |
override int MonoBrickFirmware.Sensors.NXTColorSensor.NumberOfModes |
( |
| ) |
|
|
inlinevirtual |
int MonoBrickFirmware.Sensors.NXTColorSensor.Read |
( |
| ) |
|
|
inline |
Read the intensity of the reflected or ambient light in percent. In color mode the color index is returned
override string MonoBrickFirmware.Sensors.NXTColorSensor.ReadAsString |
( |
| ) |
|
|
inlinevirtual |
Color MonoBrickFirmware.Sensors.NXTColorSensor.ReadColor |
( |
| ) |
|
|
inline |
Reads the color.
- Returns
- The color.
int MonoBrickFirmware.Sensors.NXTColorSensor.ReadRaw |
( |
| ) |
|
|
inline |
Read the raw value of the reflected or ambient light. In color mode the color index is returned
- Returns
- The raw value
RGBColor MonoBrickFirmware.Sensors.NXTColorSensor.ReadRGBColor |
( |
| ) |
|
|
inline |
Reads the color of the RGB.
- Returns
- The RGB color.
override string MonoBrickFirmware.Sensors.NXTColorSensor.SelectedMode |
( |
| ) |
|
|
inlinevirtual |
override void MonoBrickFirmware.Sensors.NXTColorSensor.SelectNextMode |
( |
| ) |
|
|
inlinevirtual |
override void MonoBrickFirmware.Sensors.NXTColorSensor.SelectPreviousMode |
( |
| ) |
|
|
inlinevirtual |
ColorMode MonoBrickFirmware.Sensors.NXTColorSensor.Mode |
|
getset |
Gets or sets the color mode.
The color mode.
The documentation for this class was generated from the following file:
- Sensors/NXTColorSensor.cs