EV3InfraredSensor.ReadDistance Method
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.
Read the distance of the sensor in CM (0-100). This will change mode to proximity
C#
public int ReadDistance ();
member this.ReadDistance : unit -> int
Public Function ReadDistance () As Integer
Produkt | Versioner |
---|---|
.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 |