Exemple #1
0
 private void InitializeModules()
 {
     this.usbClientSP   = new GTM.GHIElectronics.USBClientSP(8);
     this.relayISOx16   = new GTM.GHIElectronics.RelayISOx16(7);
     this.extender      = new GTM.GHIElectronics.Extender(3);
     this.extender2     = new GTM.GHIElectronics.Extender(4);
     this.uart          = new GTM.GHIElectronics.Extender(2);
     this.tunes         = new GTM.GHIElectronics.Tunes(this.extender2.ExtenderSocketB);
     this.ethernetENC28 = new GTM.GHIElectronics.EthernetENC28(5);
 }
Exemple #2
0
        // This method is run when the mainboard is powered up or reset.
        void ProgramStarted()
        {
            // modules
            this.LED1          = new GTM.GHIElectronics.LEDMatrix(7);
            this.LED2          = new GTM.GHIElectronics.LEDMatrix(this.LED1.DaisyLinkSocketNumber);
            this.Thermocouple  = new GTM.GHIElectronics.Thermocouple(6);
            this.Relay         = new GTM.GHIElectronics.RelayISOx16(4);
            this.Potentiometer = new GTM.GHIElectronics.Potentiometer(3);
            this.Relay.DisableAllRelays();

            // Temp Timer
            TempTimer.Tick += TempTimer_Tick;
            TempTimer.Start();

            // Timer
            RelayStartTimer.Tick += RelayStartTimer_Tick;
            RelayStopTimer.Tick  += RelayStopTimer_Tick;
        }