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