Exemple #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;
        }
Exemple #2
0
 private byte IoExpanderReadPort(int port)
 {
     return(_ioExpander.ReadPort(port));
 }