Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.07 KB

i2cdevice_write_1047802370.md

File metadata and controls

36 lines (24 loc) · 1.07 KB
-api-id -api-type
M:Windows.Devices.I2c.I2cDevice.Write(System.Byte[])
winrt method

Windows.Devices.I2c.I2cDevice.Write

-description

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.

-parameters

-param buffer

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

-examples

-see-also

WritePartial, Read, WriteRead, I2cConnectionSetting

-capabilities

lowLevel