public I2cDeviceMock(int ports, I2cConnectionSettings settings = null) { DeviceMock = new Mcp23xxxChipMock(ports, isSpi: false); _settings = settings ?? new I2cConnectionSettings(0, 0x20); }
public TestDevice(Mcp23xxx device, Mcp23xxxChipMock chipMock) { Device = device; ChipMock = chipMock; }
public SpiDeviceMock(int ports) { DeviceMock = new Mcp23xxxChipMock(ports, isSpi: true); }
public TestDevice(Mcp23xxx device, Mcp23xxxChipMock chipMock) { Device = device; ChipMock = chipMock; Controller = new GpioController(PinNumberingScheme.Logical, Device); }