have two functions reading the analogue pins on my mega 1280
The input pins are different, the variables are different, the functions are different. Still both
functions will take input from either input pin.
I.E input on pin 0 is read by both functions, and input on pin 2 is read by both functions.
What's causing this??
int boostPin = A0; // input pin for the MPX4250
int af_Pin = A2; //
int boostRead = 0; //Stores value read from MPX4250
int af_Read = 0; //Stores value read from UEGO
The reading itself is done in the looop by:
boostRead = analogRead(boostPin);
af_Read = analogRead(af_Pin);
caluculate input from boostRead;
caluculate input from af_Read;