コード例 #1
0
        public void InitializeAll()
        {
            SimpleIOClass.InitMCP2200(VendorID, ProductID);

            _deviceCount = SimpleIOClass.GetNoOfDevices();

            for (uint i = 0; i < _deviceCount; i++)
            {
                _controllers.Add(new DIO8_MCP22(i));

                _controllers[(int)i].InitializeController();
                _controllers[(int)i].Interrupt += new ICtrl_PortStateChanged(DIO8_MCP22_Manager_Interrupt);
            }
        }
コード例 #2
0
 public uint GetConnectedControllerCount()
 {
     return(SimpleIOClass.GetNoOfDevices());
 }