/// <inheritdoc/> public void Initialize() { _ioExpander.WritePort(0, 0xff); _ioExpander.SetPortDirection(0, 00); var value = _ioExpander.ReadPort(0); _mikroBusResetPin = (value & 0x80) != 0 ? PinState.Off : PinState.On; IsInitialized = true; }
private byte IoExpanderReadPort(int port) { return(_ioExpander.ReadPort(port)); }