Share via


I2cDevice.Write(Byte[]) Method

Definition

Writes data to the inter-integrated circuit (I2 C) bus on which the device is connected, based on the bus address specified in the I2cConnectionSettings object that you used to create the I2cDevice object.

public:
 virtual void Write(Platform::Array <byte> ^ buffer) = Write;
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.

Windows requirements

App capabilities
lowLevel

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 written.

Applies to

See also