public PIRSens(Cpu.Pin kojPin, Predmet stoPred)
 {
     _kakovSum = TipSenzor.PIR;
     _kadeSum = stoPred;
     pirSens  = new InterruptPort(kojPin, false, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeBoth);
     pirSens.OnInterrupt += new NativeEventHandler(NekojVleze);
 }
        public DISsens(Cpu.Pin kojPinEcho,Cpu.Pin kojPinTrig, Predmet stoPred)
        {
            _kakovSum = TipSenzor.DISTANCE;
            _kadeSum = stoPred;

            //disSensEcho = new InterruptPort(kojPinEcho, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth);
            //disSensTrig = new OutputPort(kojPinTrig, false);
            sensor  = new HC_SR04(kojPinTrig,kojPinEcho);
            //disSensEcho.OnInterrupt += new NativeEventHandler(NekojSePriblizuva);
            //disSensEcho.DisableInterrupt();
                     
        }
        public TempSens(Cpu.Pin kojPinEcho,Cpu.Pin kojPinTrig, Predmet stoPred)
        {
            _kakovSum = TipSenzor.TERMOMETAR;
            _kadeSum = stoPred;

            //disSensEcho = new InterruptPort(kojPinEcho, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth);
            //disSensTrig = new OutputPort(kojPinTrig, false);
            sensor = new Dht11Sensor(kojPinTrig,kojPinEcho, PullUpResistor.External);
            //disSensEcho.OnInterrupt += new NativeEventHandler(NekojSePriblizuva);
            //disSensEcho.DisableInterrupt();
                     
        }