public PIR_Module(Extender extender, DomoteerWebServer server) { this.server = server; this.extender = extender; interrupt = extender.CreateInterruptInput(GT.Socket.Pin.Three, GT.SocketInterfaces.GlitchFilterMode.Off, GT.SocketInterfaces.ResistorMode.PullUp, GT.SocketInterfaces.InterruptMode.FallingEdge); interrupt.Interrupt += new GT.SocketInterfaces.InterruptEventHandler(mov_det); timer_cross = new GT.Timer(20000); timer_cross.Tick += new GT.Timer.TickEventHandler(Timer_Cross_Tick); }