MonoBrick EV3 Firmware
Public Member Functions | List of all members
MonoBrickFirmware.Sensors.HiTecColorSensor Class Reference

HiTechnic color sensor More...

Inheritance diagram for MonoBrickFirmware.Sensors.HiTecColorSensor:
MonoBrickFirmware.Sensors.I2CSensor MonoBrickFirmware.Sensors.ISensor

Public Member Functions

 HiTecColorSensor (SensorPort port)
 Initializes a new instance of the MonoBrick.NXT.HiTecColor class. More...
 
int ReadColorIndex ()
 Returns the color index number (more on http://www.hitechnic.com/) More...
 
RGBColor ReadRGBColor ()
 Reads the RGB colors. More...
 
RGBColor ReadNormalizedRGBColor ()
 Reads the normalized RGB colors More...
 
override string ReadAsString ()
 Reads the sensor value as a string. More...
 
override string GetSensorName ()
 Gets the name of the sensor. More...
 
override void SelectNextMode ()
 Selects the next mode. More...
 
override void SelectPreviousMode ()
 Selects the previous mode. More...
 
override int NumberOfModes ()
 Numbers the of modes. More...
 
override string SelectedMode ()
 .m.-, More...
 
- Public Member Functions inherited from MonoBrickFirmware.Sensors.I2CSensor
 I2CSensor (SensorPort port, byte address, I2CMode mode)
 

Additional Inherited Members

- Public Attributes inherited from MonoBrickFirmware.Sensors.I2CSensor
const int BufferSize = 30
 
- Protected Member Functions inherited from MonoBrickFirmware.Sensors.I2CSensor
void Reset ()
 
void SetMode ()
 
bool Initialise ()
 
byte[] ReadRegister (byte register)
 Reads a 8 byte register from the sensor More...
 
byte[] ReadRegister (byte register, byte rxLength)
 Reads a register from the sensor More...
 
void WriteRegister (byte register, byte data)
 Writes a byte to a register. More...
 
void WriteRegister (byte register, byte[] data)
 
byte[] WriteAndRead (byte register, byte[] data, int rxLength)
 Write and read an array of bytes to the sensor More...
 
- Protected Attributes inherited from MonoBrickFirmware.Sensors.I2CSensor
byte I2CAddress = 0x00
 
const int NumberOfSensorPorts = SensorManager.NumberOfSensorPorts
 
SensorPort port
 
I2CMode mode
 
- Properties inherited from MonoBrickFirmware.Sensors.I2CSensor
UARTMode uartMode [get, set]
 
SensorPort Port [get]
 

Detailed Description

HiTechnic color sensor

Constructor & Destructor Documentation

MonoBrickFirmware.Sensors.HiTecColorSensor.HiTecColorSensor ( SensorPort  port)
inline

Initializes a new instance of the MonoBrick.NXT.HiTecColor class.

Member Function Documentation

override string MonoBrickFirmware.Sensors.HiTecColorSensor.GetSensorName ( )
inlinevirtual

Gets the name of the sensor.

Returns
The sensor name.

Implements MonoBrickFirmware.Sensors.I2CSensor.

override int MonoBrickFirmware.Sensors.HiTecColorSensor.NumberOfModes ( )
inlinevirtual

Numbers the of modes.

Returns
The number of modes

Implements MonoBrickFirmware.Sensors.I2CSensor.

override string MonoBrickFirmware.Sensors.HiTecColorSensor.ReadAsString ( )
inlinevirtual

Reads the sensor value as a string.

Returns
The value as a string

Implements MonoBrickFirmware.Sensors.I2CSensor.

int MonoBrickFirmware.Sensors.HiTecColorSensor.ReadColorIndex ( )
inline

Returns the color index number (more on http://www.hitechnic.com/)

RGBColor MonoBrickFirmware.Sensors.HiTecColorSensor.ReadNormalizedRGBColor ( )
inline

Reads the normalized RGB colors

Returns
The normalized RGB colors
RGBColor MonoBrickFirmware.Sensors.HiTecColorSensor.ReadRGBColor ( )
inline

Reads the RGB colors.

Returns
The RGB colors
override string MonoBrickFirmware.Sensors.HiTecColorSensor.SelectedMode ( )
inlinevirtual

.m.-,

Returns
The mode.

Implements MonoBrickFirmware.Sensors.I2CSensor.

override void MonoBrickFirmware.Sensors.HiTecColorSensor.SelectNextMode ( )
inlinevirtual

Selects the next mode.

Implements MonoBrickFirmware.Sensors.I2CSensor.

override void MonoBrickFirmware.Sensors.HiTecColorSensor.SelectPreviousMode ( )
inlinevirtual

Selects the previous mode.

Implements MonoBrickFirmware.Sensors.I2CSensor.


The documentation for this class was generated from the following file: