コード例 #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;
        }
コード例 #2
0
ファイル: GeigerCounter.cs プロジェクト: josemotta/Netduino
        public GeigerCounter(Cpu.Pin interruptPin, GeigerCounterStats stats)
        {
            _stats = stats;

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

            _geigerCounter.OnInterrupt += PulseCounter;
        }