Ejemplo n.º 1
0
        public GeigerCounter(Cpu.Pin interruptPin, GeigerCounterStats stats) {
            _stats = stats;

            _geigerCounter = new InterruptPort(
                interruptPin,
                true,
                Port.ResistorMode.PullUp,
                Port.InterruptMode.InterruptEdgeLevelLow);

            _geigerCounter.OnInterrupt += PulseCounter;
        }
Ejemplo n.º 2
0
        public GeigerCounter(Cpu.Pin interruptPin, GeigerCounterStats stats)
        {
            _stats = stats;

            _geigerCounter = new InterruptPort(
                interruptPin,
                true,
                Port.ResistorMode.PullUp,
                Port.InterruptMode.InterruptEdgeLevelLow);

            _geigerCounter.OnInterrupt += PulseCounter;
        }