I'm dusting off my Netduino 2 Plus... In a previous project that I authored, I used a syntax of
static AnalogInput a0 = new AnalogInput((Cpu.AnalogChannel)Cpu.AnalogChannel.ANALOG_0, 3.3, 0.0, 10);
I had to reLoad it from gitHub to realize / remember it was a version sdk4.3 project.
I'm working in a 4.2 project now* duplicating the code for another project. Currently my Netduino 2 Plus is configured as
static AnalogInput a0 = new AnalogInput(AnalogChannels.ANALOG_PIN_A0);
I get the pin, but my math is wrong in the read. I'd rather fix it in the constructor than the code.