FEZ Panda II-Analog out

I can’t figure out how to set up analog out pin A3 for the FPII.

The line:

            AnalogOut ao = new AnalogOut((Cpu.Pin)FEZ_Pin.AnalogOut.An3);

results in this error:

Error 1 The best overloaded method match for ‘GHIElectronics.NETMF.Hardware.AnalogOut.AnalogOut(GHIElectronics.NETMF.Hardware.AnalogOut.Pin)’ has some invalid arguments

Try this:

AnalogOut ao = new AnalogOut((AnalogOut.Pin)FEZ_Pin.AnalogOut.An3);

That worked very nicely. Thank you. Just out of curiosity is there any way I could have figured that out on my own? I started with the example on /www.ghielectronics.com/docs/10/analog-outputs which isn’t even close to the calls I ended up using (ie Set & SetLinearScale).

Good. This type of error indicates type mismatch of the parameter. Online help also shows the type of the parameter. The example you were referring to is for the newer devices and MF42. Panda II is legacy MF41 device.