private ICollection <int> GetDeviceIds() { var i2cDevices = _i2c.GetI2cDevices(); if (i2cDevices.Wait(500)) { return(i2cDevices.Result .Intersect(I2C_ADDRESSES) .ToArray()); } return(new int[0]); }
public async Task <IList <int> > GetI2c() { return(await _i2C.GetI2cDevices()); }