Example #1
0
        /// <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;
        }
Example #2
0
 private void IoExpanderWritePort(int port, byte[] values)
 {
     _ioExpander.WritePort(port, values);
 }