Beispiel #1
0
 private void InitializeModules()
 {
     this.button              = new GTM.GHIElectronics.Button(11);
     this.display_TE35        = new GTM.GHIElectronics.Display_TE35(14, 13, 12, Socket.Unused);
     this.ethernet_J11D       = new GTM.GHIElectronics.Ethernet_J11D(7);
     this.lightSensor         = new GTM.GHIElectronics.LightSensor(10);
     this.multicolorLed       = new GTM.GHIElectronics.MulticolorLed(8);
     this.potentiometer       = new GTM.GHIElectronics.Potentiometer(9);
     this.temperatureHumidity = new GTM.Seeed.TemperatureHumidity(6);
     this.barometer           = new GTM.Seeed.Barometer(4);
     this.compass             = new GTM.Seeed.Compass(3);
 }
Beispiel #2
0
 private void InitializeModules()
 {
     this.button = new GTM.GHIElectronics.Button(11);
     this.display_TE35 = new GTM.GHIElectronics.Display_TE35(14, 13, 12, Socket.Unused);
     this.ethernet_J11D = new GTM.GHIElectronics.Ethernet_J11D(7);
     this.lightSensor = new GTM.GHIElectronics.LightSensor(10);
     this.multicolorLed = new GTM.GHIElectronics.MulticolorLed(8);
     this.potentiometer = new GTM.GHIElectronics.Potentiometer(9);
     this.temperatureHumidity = new GTM.Seeed.TemperatureHumidity(6);
     this.barometer = new GTM.Seeed.Barometer(4);
     this.compass = new GTM.Seeed.Compass(3);
 }
        private void InitializeModules()
        {
            // Initialize GTM.Modules and event handlers here.
            usbClientDP = new GTM.GHIElectronics.UsbClientDP(1);

            relays = new GTM.Seeed.Relays(8);

            potentiometer = new GTM.GHIElectronics.Potentiometer(9);

            display_TE35 = new GTM.GHIElectronics.Display_TE35(14, 13, 12, 10);

            thermocouple = new GTM.GHIElectronics.Thermocouple(11);
        }
Beispiel #4
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;
        }