Ejemplo n.º 1
0
 public Gas(GasSense g, Wifi wifi)
 {
     this.wifi         = wifi;
     this.gs           = g;
     _getReading.Tick += new GT.Timer.TickEventHandler(_getReading_Tick);
     _preheat.Tick    += new GT.Timer.TickEventHandler(_preheat_Tick);
     _getReading.Start();
 }
Ejemplo n.º 2
0
 public Gas(GasSense g, Wifi wifi)
 {
     this.wifi = wifi;
     this.gs = g;
     _getReading.Tick += new GT.Timer.TickEventHandler(_getReading_Tick);
     _preheat.Tick += new GT.Timer.TickEventHandler(_preheat_Tick);
     _getReading.Start();
 }
Ejemplo n.º 3
0
 void ProgramStarted()
 {
     w = new Wifi(wifi_RS21);
     CameraClass c = new CameraClass(camera, motion_Sensor, w);
     Devices d = new Devices(button, w);
     Gas g = new Gas(gasSense, w);
     Debug.Print("Program Started");
     button.ButtonPressed += button_ButtonPressed;
 }
Ejemplo n.º 4
0
 public Devices(Button button, Wifi wifi)
 {
     this.wifi   = wifi;
     blueT       = new Gadgeteer.Bluetooth(8);
     this.button = button;
     t           = new GT.Timer(100);
     t.Tick     += new GT.Timer.TickEventHandler(start);
     t.Start();
     Debug.Print("devices");
 }
Ejemplo n.º 5
0
        void ProgramStarted()
        {
            w = new Wifi(wifi_RS21);
            CameraClass c = new CameraClass(camera, motion_Sensor, w);
            Devices     d = new Devices(button, w);
            Gas         g = new Gas(gasSense, w);

            Debug.Print("Program Started");
            button.ButtonPressed += button_ButtonPressed;
        }
Ejemplo n.º 6
0
 public Devices(Button button, Wifi wifi)
 {
     this.wifi = wifi;
     blueT = new Gadgeteer.Bluetooth(8);
     this.button = button;
     t = new GT.Timer(100);
     t.Tick += new GT.Timer.TickEventHandler(start);
     t.Start();
     Debug.Print("devices");
 }
Ejemplo n.º 7
0
        public CameraClass(Gadgeteer.Modules.GHIElectronics.Camera camera, Motion_Sensor motion_Sensor, Wifi wf)
        {
            this.wifi = wf;
            this.camera = camera;
            this.camera.CurrentPictureResolution = Camera.PictureResolution.Resolution160x120;
            this.motion_Sensor = motion_Sensor;
            this.motion_Sensor.Motion_Sensed += new GTM.Motion_Sensor.Motion_SensorEventHandler(motion_Sensor_Motion_Sensed);
            this.camera.PictureCaptured += new Camera.PictureCapturedEventHandler(camera_PictureCaptured);
            this.camera.DebugPrintEnabled = false;

            timer = new GT.Timer(sleepTime);
            timer.Tick += timer_Tick;
        }
Ejemplo n.º 8
0
        public CameraClass(Gadgeteer.Modules.GHIElectronics.Camera camera, Motion_Sensor motion_Sensor, Wifi wf)
        {
            this.wifi   = wf;
            this.camera = camera;
            this.camera.CurrentPictureResolution = Camera.PictureResolution.Resolution160x120;
            this.motion_Sensor = motion_Sensor;
            this.motion_Sensor.Motion_Sensed += new GTM.Motion_Sensor.Motion_SensorEventHandler(motion_Sensor_Motion_Sensed);
            this.camera.PictureCaptured      += new Camera.PictureCapturedEventHandler(camera_PictureCaptured);
            this.camera.DebugPrintEnabled     = false;

            timer       = new GT.Timer(sleepTime);
            timer.Tick += timer_Tick;
        }