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(); }
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; }
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"); }
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; }