I’m converting old Cobra I code over to my new Cobra II. I have two analog sensor inputs that read low level voltage values. (1-2v).
The code I see in the Gadgeteer is specifically designed to work with the sockets; however I want to use a single pin, such as P0.12 and P0.13
P0.12 is listed on the board as AD6 and P0.13 as AD7
so I use the Microsoft.SPOT AnalogInput rather than the Gadgeteer AnalogInput as follows:
var aInput = new AnalogInput(Cpu.AnalogChannel.ANALOG_6,3.3,0,12);
This methodology always results in a value of Zero.
I’ve tried this with several different Analog enabled pins with the same result.