Seesaw.Read(Seesaw+SeesawModule, Seesaw+SeesawFunction, Int32, Int16) Method

Definition

Read a byte array from the I2cDevice connected to the Seesaw board.

protected byte[] Read (Iot.Device.Seesaw.Seesaw.SeesawModule moduleAddress, Iot.Device.Seesaw.Seesaw.SeesawFunction functionAddress, int length, short readDelayMicroSeconds = 0);
member this.Read : Iot.Device.Seesaw.Seesaw.SeesawModule * Iot.Device.Seesaw.Seesaw.SeesawFunction * int * int16 -> byte[]
Protected Function Read (moduleAddress As Seesaw.SeesawModule, functionAddress As Seesaw.SeesawFunction, length As Integer, Optional readDelayMicroSeconds As Short = 0) As Byte()

Parameters

moduleAddress
Seesaw.SeesawModule

A Seesaw_Module enum that represents the module that we are reading from.

functionAddress
Seesaw.SeesawFunction

A Seesaw_Function enum that represents the Seesaw function to be called.

length
Int32

The number of bytes that are expected to be returned from the Seesaw device.

readDelayMicroSeconds
Int16

The delay between sending the function and readinng the data in microseconds.

Returns

Byte[]

Returns the byte array representaing values from the Seesaw device.

Applies to