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

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

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