Share via


II2cDeviceProvider.Write(Byte[]) Method

Definition

Writes data to the inter-integrated circuit (I2 C) bus on which the device is connected.

public:
 void Write(Platform::Array <byte> ^ buffer);
void Write(winrt::array_view <byte> const& buffer);
public void Write(byte[] buffer);
function write(buffer)
Public Sub Write (buffer As Byte())

Parameters

buffer

Byte[]

byte[]

A buffer that contains the data that you want to write to the I2 C device. This data should not include the bus address.

Remarks

Error Codes

0x80070002

The bus address was not acknowledged.

0x8007045D

The I2 C device negatively acknowledged the data transfer before the entire buffer was read.

Applies to

See also