II2cDeviceProvider.Write(Byte[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for