Hello again folks,
I’m tring to get the Domino to read 2 separate values from the analogue pins at the same time, in this case An0 and An1. The problem I am having is that whichever pin I send voltages to, both pins seem to respond.
Here is the basic code:
AnalogIn G = new AnalogIn((AnalogIn.Pin)FEZ_Pin.AnalogIn.An0); AnalogIn P = new AnalogIn((AnalogIn.Pin)FEZ_Pin.AnalogIn.An1); G.SetLinearScale(0, 3300); P.SetLinearScale(0, 3300); voltage1 = G.Read(); voltage2 = P.Read(); counter_string = voltage1.ToString()+" "+voltage2.ToString()+"\r\n"; Debug.Print(counter_string);
Any ideas as to what I am doing wrong?
PS. I’m logged on to chat if anyone can lend me a hand