Esempio n. 1
0
 private void InitializeModules()
 {
     this.xBee          = new GTM.GHIElectronics.XBee(9);
     this.extender      = new GTM.GHIElectronics.Extender(11);
     this.rs485         = new GTM.GHIElectronics.RS485(this.extender.ExtenderSocketNumber);
     this.button        = new GTM.GHIElectronics.Button(4);
     this.usbClientSP   = new GTM.GHIElectronics.UsbClientSP(1);
     this.display_T35   = new GTM.GHIElectronics.Display_T35(14, 13, 12, 10);
     this.multicolorLed = new GTM.GHIElectronics.MulticolorLed(5);
 }
Esempio n. 2
0
        public MovementHexapod()
        {
            //---Initializing modules---//
            this.extender = new GTM.GHIElectronics.Extender(11);
            this.rs485    = new GTM.GHIElectronics.RS485(this.extender.ExtenderSocketNumber);
            serie         = new GT.Interfaces.Serial(GT.Socket.GetSocket(11, true, null, string.Empty), 200000, GT.Interfaces.Serial.SerialParity.None, GT.Interfaces.Serial.SerialStopBits.One, 8, GT.Interfaces.Serial.HardwareFlowControl.NotRequired, null);
            serie.Open();

            S11P3dirAx12 = extender.SetupDigitalOutput(GT.Socket.Pin.Three, true); //False pour lire, True pour écrire
            S11P3dirAx12.Write(true);
        }