Mpu6500.ReadByteFromSlaveDevice Method
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.
Read data from any of the I2C slave attached to the MPU9250
C#
public void ReadByteFromSlaveDevice (Iot.Device.Imu.I2cChannel i2cChannel, byte address, byte register, Span<byte> readBytes);
member this.ReadByteFromSlaveDevice : Iot.Device.Imu.I2cChannel * byte * byte * Span<byte> -> unit
Public Sub ReadByteFromSlaveDevice (i2cChannel As I2cChannel, address As Byte, register As Byte, readBytes As Span(Of Byte))
- i2cChannel
- I2cChannel
The slave channel to attached to the I2C device
- address
- Byte
The I2C address of the slave I2C element
- register
- Byte
The register to read from the slave I2C element
Toode | Versioonid |
---|---|
.NET IoT Libraries | 1.1.0, 1.2.0, 1.3.0, 1.4.0 |