public GeigerCounter(Cpu.Pin interruptPin, GeigerCounterStats stats) {
            _stats = stats;

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

            _geigerCounter.OnInterrupt += PulseCounter;
        }
Example #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;
        }