public GeigerCounter(Cpu.Pin interruptPin, GeigerCounterStats stats) { _stats = stats; _geigerCounter = new InterruptPort( interruptPin, true, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeLevelLow); _geigerCounter.OnInterrupt += PulseCounter; }