EV3UltraSonicSensor Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a EV3 Ultrasound sensor
public class EV3UltraSonicSensor : Iot.Device.BrickPi3.Sensors.ISensor, System.ComponentModel.INotifyPropertyChanged
type EV3UltraSonicSensor = class
interface INotifyPropertyChanged
interface ISensor
Public Class EV3UltraSonicSensor
Implements INotifyPropertyChanged, ISensor
- Inheritance
-
EV3UltraSonicSensor
- Implements
EV3Ultra |
Initialize an EV3 Ultrasonic Sensor |
EV3Ultra |
Initialize an EV3 Ultrasonic sensor |
EV3Ultra |
Initialize an EV3 Ulrasonic sensor |
Mode |
Gets or sets the Gyro mode. |
Period |
Period to refresh the notification of property changed in milliseconds |
Port |
Sensor port |
Value |
Return the raw value of the sensor |
Value |
Return the raw value as a string of the sensor |
Get |
Gets sensor name |
Number |
Number of modes supported |
Read() |
Read the sensor value. Result depends on the mode |
Read |
Reads the sensor value as a string. |
Read |
Read the sensor value |
Selected |
Selected mode |
Select |
Moves to next mode |
Select |
Moves to previous mode |
Update |
Update the sensor and this will raised an event on the interface |
Property |
To notify a property has changed. The minimum time can be set up with timeout property |
Product | Versions |
---|---|
.NET IoT Libraries | 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |