Example #1
0
        private void InitializeModules()
        {
            // Initialize GTM.Modules and event handlers here.
            thermocouple = new GTM.GHIElectronics.Thermocouple(1);

            display_HD44780 = new GTM.GHIElectronics.Display_HD44780(3);
        }
Example #2
0
        private void InitializeModules()
        {
            // Initialize GTM.Modules and event handlers here.
            thermocouple = new GTM.GHIElectronics.Thermocouple(1);

            display_HD44780 = new GTM.GHIElectronics.Display_HD44780(3);
        }
Example #3
0
        // This method is run when the mainboard is powered up or reset.
        void ProgramStarted()
        {
            display_HD44780 = new GTM.GHIElectronics.Display_HD44780(1);
            CheckForServiceUpdate();

            Display("Loading assembly", "");

            JayDayService.Service.Init(display_HD44780);
            JayDayService.Service.Run();
            //var bytes = Resources.GetBytes(Resources.BinaryResources.JayDayService);
            //var asm = Assembly.Load(bytes);
            //var t = asm.GetType("JayDayService.Service");
            //if (t != null)
            //{
            //    Display("Assembly Loaded", "Starting Service");
            //    serviceRun = t.GetMethod("Run");
            //    serviceInit = t.GetMethod("Init");
            //    serviceStop = t.GetMethod("Stop");
            //    // display is shared.
            //    serviceInit.Invoke(null, new object[] { display_HD44780 });
            //    serviceRun.Invoke(null, null);
            //    // PowerState.Reboot(true) .. to free up memory..
            //}

            timer = new GT.Timer(10000);
            timer.Tick += new GT.Timer.TickEventHandler(timer_Tick);
            timer.Start();
        }
Example #4
0
 private void InitializeModules()
 {
     this.usbClientSP         = new GTM.GHIElectronics.UsbClientSP(8);
     this.lightSensor         = new GTM.GHIElectronics.LightSensor(3);
     this.led7c               = new GTM.GHIElectronics.LED7C(5);
     this.char_Display        = new GTM.GHIElectronics.Display_HD44780(7);
     this.barometer           = new GTM.Seeed.Barometer(2);
     this.temperatureHumidity = new GTM.Seeed.TemperatureHumidity(4);
 }
Example #5
0
 private void InitializeModules()
 {
     this.usbClientSP = new GTM.GHIElectronics.UsbClientSP(8);
     this.barometer = new GTM.Seeed.Barometer(2);
     this.gasSense = new GTM.GHIElectronics.GasSense(4);
     this.lightSensor = new GTM.GHIElectronics.LightSensor(3);
     this.char_Display = new GTM.GHIElectronics.Display_HD44780(7);
     this.temperatureHumidity = new GTM.Seeed.TemperatureHumidity(5);
 }
        private void InitializeModules()
        {
            // Initialize GTM.Modules and event handlers here.
            usbClientDP = new GTM.GHIElectronics.UsbClientDP(1);

            motion_Sensor = new GTM.GHIElectronics.Motion_Sensor(4);

            multicolorLed = new GTM.GHIElectronics.MulticolorLed(8);

            rfid = new GTM.GHIElectronics.RFID(9);

            char_Display = new GTM.GHIElectronics.Display_HD44780(12);
        }
Example #7
0
        public static void Init(GTM.GHIElectronics.Display_HD44780 display)
        {
            version = "1.0";
            sensorVoltage = 4.80D;
            mvpermm = sensorVoltage / 512D;
            if (display_HD44780 == null)
            {
                display_HD44780 = display;
            }

            if (extender == null)
            {
                extender = new GTM.GHIElectronics.Extender(3);
            }

            if (sensors == null)
            {
                sensors = new AnalogInput[3];
            }

            if (sensors[0] == null)
                sensors[0] = extender.SetupAnalogInput(GT.Socket.Pin.Three);
            if (sensors[1] == null)
                sensors[1] = extender.SetupAnalogInput(GT.Socket.Pin.Four);
            if (sensors[2] == null)
                sensors[2] = extender.SetupAnalogInput(GT.Socket.Pin.Five);

            if (sensorTimer == null)
            {
                sensorTimer = new GT.Timer(500);
                sensorTimer.Tick += new GT.Timer.TickEventHandler(sensorTimer_Tick);
            }

            if (modem == null)
            {
                modem = new Sim900Modem(2);
            }

            Display("ozlo, llc " + version, "");
        }
Example #8
0
 private void InitializeModules()
 {
     // Initialize GTM.Modules and event handlers here.
     display = new GTM.GHIElectronics.Display_HD44780(7);
 }