Language
Edit

I2cBusExtensions.ToUserReadableTable Method

Definition

Converts the output of PerformBusScan(I2cBus, IProgress<Single>, Int32, Int32) into a user-readable table, corresponding to the output of the standard linux command i2cdetect.

public static string ToUserReadableTable(this(System.Collections.Generic.List<int> FoundDevices, int LowestAddress, int HighestAddress) data);
static member ToUserReadableTable : ValueTuple<System.Collections.Generic.List<int>, int, int> -> string
<Extension()>
Public Function ToUserReadableTable (data As ValueTuple(Of List(Of Integer), Integer, Integer)) As String

Parameters

data
ValueTuple<List<Int32>,Int32,Int32>

The result of a bus scan

Returns

A table in form of a multiline string for the first 127 possible devices. An empty field represents an address that was not tested, a -- means no device found and a number means there was a device at that address

Applies to