コード例 #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);
 }