button2 = new InterruptPort(Pins.GPIO_PIN_D8, true, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeHigh);
However, this didn't seem to work. However, when I added this line:
button2.Resistor = Port.ResistorMode.PullUp;
It worked. Is this expected? If so, then I'm assuming that the constructor is used to tell it what mode is being used, but has no bearing on whether the resistor is external or internal. In order to actually turn the internal resistor on, you have to use the second line.
Is this correct? I'm posting because I think it is, and if so, it might be handy for others. I haven't seen an example showing the second line of code, so others might have missed it.
Can anyone confirm these findings with certainty? Has it been posted elsewhere and I've just missed it?