Go Down

Topic: Function for multiplexing (Read 936 times) previous topic - next topic

Grumpy_Mike

You have:-

  p=analogRead(0);
  return p;
  Serial.println(p);

Which means that the print command is never reached because the function returns before getting to it. Swap those last two instructions over.

Go Up