InterruptPort test = new InterruptPort(Pins.GPIO_PIN_A0, false, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth); test.Dispose(); //OutputPort p = new OutputPort(Pins.GPIO_PIN_A0, false); //p.Dispose(); alarm2 = new AnalogInput(Pins.GPIO_PIN_A0); alarm2.SetRange(0, 100);
I'm on firmware 4.1.0.2 as I'm using Mac/Parallels to test.
It appears something is amiss. This seems like it should be a very trivial setup. 3 wires out of the MaxSonar, power, ground, and to one of the analog pins.
Is there something else I'm missing?