![]() |
MonoBrick EV3 Firmware
|
Public Member Functions | |
| AnalogSensor (SensorPort port) | |
| abstract string | ReadAsString () |
| Reads the sensor value as a string. More... | |
| abstract void | SelectNextMode () |
| Selects the next mode. More... | |
| abstract string | GetSensorName () |
| Gets the name of the sensor. More... | |
| abstract void | SelectPreviousMode () |
| Selects the previous mode. More... | |
| abstract int | NumberOfModes () |
| Numbers the of modes. More... | |
| abstract string | SelectedMode () |
| .m.-, More... | |
Protected Member Functions | |
| 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) |
Protected Attributes | |
| const int | ADCResolution = 4095 |
| const int | NumberOfSensorPorts = SensorManager.NumberOfSensorPorts |
| SensorPort | port |
Properties | |
| AnalogMode | AnalogMode [get, set] |
| SensorPort | Port [get] |
Properties inherited from MonoBrickFirmware.Sensors.ISensor | |
| SensorPort | Port [get] |
| Sensor port More... | |
|
pure virtual |
Gets the name of the sensor.
Implements MonoBrickFirmware.Sensors.ISensor.
Implemented in MonoBrickFirmware.Sensors.NXTColorSensor, MonoBrickFirmware.Sensors.NXTSoundSensor, MonoBrickFirmware.Sensors.NXTLightSensor, MonoBrickFirmware.Sensors.EV3TouchSensor, MonoBrickFirmware.Sensors.NXTTouchSensor, and MonoBrickFirmware.Sensors.HiTecGyroSensor.
|
pure virtual |
Numbers the of modes.
Implements MonoBrickFirmware.Sensors.ISensor.
Implemented in MonoBrickFirmware.Sensors.NXTColorSensor, MonoBrickFirmware.Sensors.NXTSoundSensor, MonoBrickFirmware.Sensors.NXTLightSensor, MonoBrickFirmware.Sensors.EV3TouchSensor, MonoBrickFirmware.Sensors.NXTTouchSensor, and MonoBrickFirmware.Sensors.HiTecGyroSensor.
|
pure virtual |
Reads the sensor value as a string.
Implements MonoBrickFirmware.Sensors.ISensor.
Implemented in MonoBrickFirmware.Sensors.NXTColorSensor, MonoBrickFirmware.Sensors.NXTSoundSensor, MonoBrickFirmware.Sensors.NXTLightSensor, MonoBrickFirmware.Sensors.HiTecGyroSensor, MonoBrickFirmware.Sensors.EV3TouchSensor, and MonoBrickFirmware.Sensors.NXTTouchSensor.
|
inlineprotected |
Reads the value of pin 1 converted to 10 bit
|
pure virtual |
.m.-,
Implements MonoBrickFirmware.Sensors.ISensor.
Implemented in MonoBrickFirmware.Sensors.NXTColorSensor, MonoBrickFirmware.Sensors.NXTSoundSensor, MonoBrickFirmware.Sensors.NXTLightSensor, MonoBrickFirmware.Sensors.EV3TouchSensor, MonoBrickFirmware.Sensors.NXTTouchSensor, and MonoBrickFirmware.Sensors.HiTecGyroSensor.
|
pure virtual |
Selects the next mode.
Implements MonoBrickFirmware.Sensors.ISensor.
Implemented in MonoBrickFirmware.Sensors.NXTColorSensor, MonoBrickFirmware.Sensors.NXTSoundSensor, MonoBrickFirmware.Sensors.NXTLightSensor, MonoBrickFirmware.Sensors.EV3TouchSensor, MonoBrickFirmware.Sensors.NXTTouchSensor, and MonoBrickFirmware.Sensors.HiTecGyroSensor.
|
pure virtual |
Selects the previous mode.
Implements MonoBrickFirmware.Sensors.ISensor.
Implemented in MonoBrickFirmware.Sensors.NXTColorSensor, MonoBrickFirmware.Sensors.NXTSoundSensor, MonoBrickFirmware.Sensors.NXTLightSensor, MonoBrickFirmware.Sensors.EV3TouchSensor, MonoBrickFirmware.Sensors.NXTTouchSensor, and MonoBrickFirmware.Sensors.HiTecGyroSensor.
1.8.3.1