Replacing an "Alphanumeric 16x2 LCD" with a "Smart-GPU color 320x240" display...

PaulS:

        inputReading1 = analogRead(sensor1); //getting the voltage reading from the 02 sensor

So, inputReading1 could be 0 or 1023 or anywhere in between.

        Input = analogRead(PPO); // PID analog input for PPO

Gets changed, by the precompiler, to:

        Input = analogRead(inputReading1*aref_voltage/1024); // PID analog input for PPO

Since aref_voltage is 1.72, you will be reading from pin 0.0 to pin 1.718. Does that make sense?

No.....those sections are only related to and control the "PID"(the setpoint controller) function and have nothing to do with the input being read.....only the following code has to do with the LCD displaying the direct voltage that was converted from the "0-1023" value. And this displayed voltage value on the LCD is what is being fed into inputs A0, A1, and A2.

Thank you.