I am running a Hydra and am having problems using an extender to raise an interrupt.
This code produces an error and I have tried all the available ports.
extender.SetupDigitalInput(GT.Socket.Pin.Three, GTI.GlitchFilterMode.Off, GTI.ResistorMode.PullDown);
GTI.InterruptInput geiger = extender.SetupInterruptInput(GT.Socket.Pin.Three, GTI.GlitchFilterMode.Off, GTI.ResistorMode.PullDown, GTI.InterruptMode.RisingEdge);
geiger.Interrupt += new GTI.InterruptInput.InterruptEventHandler(geiger_Interrupt);
The error I see is:
Using mainboard GHI Electronics FEZHydra version 1.2
#### Exception System.ArgumentException - 0xfd000000 (1) ####
#### Message:
#### Microsoft.SPOT.Hardware.Port::.ctor [IP: 0000] ####
#### Microsoft.SPOT.Hardware.InputPort::.ctor [IP: 0008] ####
#### Gadgeteer.Interfaces.DigitalInput::.ctor [IP: 0015] ####
#### Gadgeteer.Modules.GHIElectronics.Extender::SetupDigitalInput [IP: 000b] ####
#### Geiger_Hydra.Program::ProgramStarted [IP: 000b] ####
#### Geiger_Hydra.Program::Main [IP: 0015] ####
A first chance exception of type ‘System.ArgumentException’ occurred in Microsoft.SPOT.Hardware.dll
An unhandled exception of type ‘System.ArgumentException’ occurred in Microsoft.SPOT.Hardware.dll
Being new at this I’m certain I have messed something up.
Any help would be appreciated.