![]() |
MonoBrick EV3 Firmware
|
Class for the NXT sound sensor. More...
Public Member Functions | |
| NXTSoundSensor (SensorPort port) | |
| Initializes a new instance of the sound sensor class. More... | |
| NXTSoundSensor (SensorPort port, SoundMode mode) | |
| Initializes a new instance of the sound sensor class. More... | |
| override string | ReadAsString () |
| Reads the sensor value as a string. More... | |
| int | Read () |
| Read the sensor value More... | |
| int | ReadRaw () |
| Reads the raw sensor value 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.AnalogSensor | |
| AnalogSensor (SensorPort port) | |
Properties | |
| SoundMode | Mode [get, set] |
| Gets or sets the sound mode. More... | |
Properties inherited from MonoBrickFirmware.Sensors.AnalogSensor | |
| AnalogMode | AnalogMode [get, set] |
| SensorPort | Port [get] |
Properties inherited from MonoBrickFirmware.Sensors.ISensor | |
| SensorPort | Port [get] |
| Sensor port More... | |
Additional Inherited Members | |
Protected Member Functions inherited from MonoBrickFirmware.Sensors.AnalogSensor | |
| 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 inherited from MonoBrickFirmware.Sensors.AnalogSensor | |
| const int | ADCResolution = 4095 |
| const int | NumberOfSensorPorts = SensorManager.NumberOfSensorPorts |
| SensorPort | port |
Class for the NXT sound sensor.
|
inline |
Initializes a new instance of the sound sensor class.
|
inline |
Initializes a new instance of the sound sensor class.
| mode | Mode. |
|
inlinevirtual |
Gets the name of the sensor.
Implements MonoBrickFirmware.Sensors.AnalogSensor.
|
inlinevirtual |
|
inline |
Read the sensor value
|
inlinevirtual |
Reads the sensor value as a string.
Implements MonoBrickFirmware.Sensors.AnalogSensor.
|
inline |
Reads the raw sensor value
|
inlinevirtual |
|
inlinevirtual |
Selects the next mode.
Implements MonoBrickFirmware.Sensors.AnalogSensor.
|
inlinevirtual |
Selects the previous mode.
Implements MonoBrickFirmware.Sensors.AnalogSensor.
|
getset |
Gets or sets the sound mode.
The mode.
1.8.3.1