示例#1
0
        internal DigitalInputPort(MCP23008 mcp, byte pin, bool enableInterrupt) : base(enableInterrupt)
        {
            _mcp = mcp;
            _pin = pin;

            if (enableInterrupt)
            {
                // enable the interrupt stuff on the MCP
            }
        }
        internal DigitalOutputPort(MCP23008 mcp, byte pin, bool initialState) : base(initialState)
        {
            _mcp = mcp;
            _pin = pin;

            //if (initialState)
            //{
            State = initialState;
            //}
        }