EV3InfraredSensor 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 Infrared Sensor
public class EV3InfraredSensor : Iot.Device.BrickPi3.Sensors.ISensor, System.ComponentModel.INotifyPropertyChanged
type EV3InfraredSensor = class
interface INotifyPropertyChanged
interface ISensor
Public Class EV3InfraredSensor
Implements INotifyPropertyChanged, ISensor
- Inheritance
-
EV3InfraredSensor
- Implements
EV3Infrared |
Initialize an EV3 IR Sensor |
EV3Infrared |
Initializes an EV3 IS Sensor |
EV3Infrared |
Initialize an EV3 IR Sensor |
Channel |
Gets or sets the IR channel used for reading remote commands or beacon location |
Mode |
Gets or sets the IR 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. The returned value depends on the mode. Distance in proximity mode. Remote command number in remote mode. Beacon location in seek mode. |
Read |
Reads the sensor value as a string. |
Read |
Gets the beacon location. This will change the mode to seek |
Read |
Read the distance of the sensor in CM (0-100). This will change mode to proximity |
Read |
Read the sensor value |
Read |
Reads commands from the IR-Remote. This will change mode to remote |
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 |