II2cDeviceStatics.FromIdAsync(String, I2cConnectionSettings) II2cDeviceStatics.FromIdAsync(String, I2cConnectionSettings) II2cDeviceStatics.FromIdAsync(String, I2cConnectionSettings) II2cDeviceStatics.FromIdAsync(String, I2cConnectionSettings) II2cDeviceStatics.FromIdAsync(String, I2cConnectionSettings) Method

Definition

Retrieves an I2cDevice object asynchronously for the inter-integrated circuit (I2 C) bus controller that has the specified plug and play device identifier, using the specified connection settings.

public : IAsyncOperation<I2cDevice> FromIdAsync(Platform::String deviceId, I2cConnectionSettings settings)
IAsyncOperation<I2cDevice> FromIdAsync(winrt::hstring deviceId, I2cConnectionSettings settings) const;
public IAsyncOperation<I2cDevice> FromIdAsync(String deviceId, I2cConnectionSettings settings)
Public Function FromIdAsync(deviceId As String, settings As I2cConnectionSettings) As IAsyncOperation(Of I2cDevice)
Windows.Devices.I2c.II2cDeviceStatics.fromIdAsync(deviceId, settings).done( /* Your success and error handlers */ );

Parameters

deviceId
String String String

The plug and play device identifier of the I2 C bus controller for which you want to create an I2cDevice object.

settings
I2cConnectionSettings I2cConnectionSettings I2cConnectionSettings

The connection settings to use for communication with the I2 C bus controller that deviceId specifies.

Returns

Additional features and requirements

Capabilities
lowLevel

See also