Ejemplo n.º 1
0
        public override void InitPorts()
        {
            // Clear any previous port
            RegistredPorts.Clear();

            Port portA = new Port("A", 0, true);
            Port portB = new Port("B", 1, true);
            Port portC = new Port("C", 2, true);
            Port portD = new Port("D", 3, true);

            Port port1 = new Port("One", 4, true);
            Port port2 = new Port("Two", 5, true);
            Port port3 = new Port("Three", 6, true);
            Port port4 = new Port("Four", 7, true);

            RegistredPorts.Add(portA);
            RegistredPorts.Add(portB);
            RegistredPorts.Add(portC);
            RegistredPorts.Add(portD);

            RegistredPorts.Add(port1);
            RegistredPorts.Add(port2);
            RegistredPorts.Add(port3);
            RegistredPorts.Add(port4);
        }
Ejemplo n.º 2
0
        public override void InitPorts()
        {
            // Clear any previous port
            RegistredPorts.Clear();

            Port portA = new Port("A", 1, true);
            Port portB = new Port("B", 2, true);

            RegistredPorts.Add(portA);
            RegistredPorts.Add(portB);
        }
Ejemplo n.º 3
0
        public override void InitPorts()
        {
            // Clear any previous port
            RegistredPorts.Clear();

            Port portA = new Port("A", 0, true);
            Port portB = new Port("B", 1, true);

            RegistredPorts.Add(portA);
            RegistredPorts.Add(portB);

            portA.Function = Port.Functions.BUTTON;
            portB.Function = Port.Functions.BUTTON;
        }
Ejemplo n.º 4
0
        public override void InitPorts()
        {
            // Clear any previous port
            RegistredPorts.Clear();

            Port portA = new Port("A", 0, true);
            Port portB = new Port("B", 2, true);
            Port portC = new Port("C", 1, true);
            Port portD = new Port("D", 3, true);

            RegistredPorts.Add(portA);
            RegistredPorts.Add(portB);
            RegistredPorts.Add(portC);
            RegistredPorts.Add(portD);

            portA.Function = Port.Functions.MOTOR;
            portB.Function = Port.Functions.MOTOR;
            portC.Function = Port.Functions.MOTOR;
            portD.Function = Port.Functions.MOTOR;
        }