Edit

Share via


GoPiGo.GroveI2cStart(GrovePort, Byte, Byte[], Byte) Method

Definition

Start an I2C transaction

public void GroveI2cStart (Iot.Device.GoPiGo3.Models.GrovePort port, byte addr, byte[] arrayToSend, byte inBytes = 0);
member this.GroveI2cStart : Iot.Device.GoPiGo3.Models.GrovePort * byte * byte[] * byte -> unit
Public Sub GroveI2cStart (port As GrovePort, addr As Byte, arrayToSend As Byte(), Optional inBytes As Byte = 0)

Parameters

port
GrovePort

The Grove Port, one at the time Grove1 or Grove2

addr
Byte

The I2C address of the secondary to be addressed.

arrayToSend
Byte[]

An array of bytes to send.

inBytes
Byte

The number of bytes to read.

Applies to