![]() |
MonoBrick EV3 Firmware
|
HiTechnic tilt compass sensor More...
Public Member Functions | |
| HiTecCompassSensor (SensorPort port) | |
| Initializes a new instance of the MonoBrick.NXT.HiTecCompass class. More... | |
| int | ReadDirection () |
| Read the direction of the compass More... | |
| override string | ReadAsString () |
| Reads the sensor value as a string. More... | |
| override void | SelectNextMode () |
| Selects the next mode. More... | |
| override string | GetSensorName () |
| Gets the name of the sensor. 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] |
HiTechnic tilt compass sensor
|
inline |
Initializes a new instance of the MonoBrick.NXT.HiTecCompass class.
|
inlinevirtual |
Gets the name of the sensor.
Implements MonoBrickFirmware.Sensors.I2CSensor.
|
inlinevirtual |
|
inlinevirtual |
Reads the sensor value as a string.
Implements MonoBrickFirmware.Sensors.I2CSensor.
|
inline |
Read the direction of the compass
|
inlinevirtual |
|
inlinevirtual |
Selects the next mode.
Implements MonoBrickFirmware.Sensors.I2CSensor.
|
inlinevirtual |
Selects the previous mode.
Implements MonoBrickFirmware.Sensors.I2CSensor.
1.8.3.1