Go Down

Topic: Internal analogReference only for one port (Read 188 times) previous topic - next topic



I was wondering, is it possible to only declare the function <analogReference(INTERNAL);> to one port? I have an lm35 temperature sensor which has a much bigger range if I set the reference to internal but since I already built my whole project including potmeters on the external reference I would like to only use it on 1 port.

Is that possible?




Is that possible?

Sure. That's the way it works. I don't think that that is what you mean, though. A port is a collection of pins. I think you want to use analogReference() for one pin. Whether that is safe, or not, I don't know.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131