C# Class Rover.UltrasonicDistanceSensor

显示文件 Open project: peejster/Rover Class Usage Examples

Public Methods

Method Description
GetDistanceInCmAsync ( int timeoutInMilliseconds ) : Task
UltrasonicDistanceSensor ( int trigGpioPin, int echoGpioPin ) : System

Private Methods

Method Description
GpioPinEcho_ValueChanged ( Windows.Devices.Gpio.GpioPin sender, Windows.Devices.Gpio.GpioPinValueChangedEventArgs args ) : void

Method Details

GetDistanceInCmAsync() public method

public GetDistanceInCmAsync ( int timeoutInMilliseconds ) : Task
timeoutInMilliseconds int
return Task

UltrasonicDistanceSensor() public method

public UltrasonicDistanceSensor ( int trigGpioPin, int echoGpioPin ) : System
trigGpioPin int
echoGpioPin int
return System