I2C Plugin for Xojo

Adapter.Scan Method (console safe)

Scans the I2C bus, returning array of found devices.

Scan() as Int32()

Parameters

Returns

Int32()
Array of found devices. If you get negative value then that is to indicate that a busy device was found on that number without the negative prefix.

Remarks

Running this method has same risks as using the i2cdetect utility. That is there are few known I2C devices that do not like to be scanned like this.

This function throws I2CException if there is error.

See Also

Adapter Class