Go Down

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

Hi,

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?

Thanks!

Maurits

PaulS

Quote
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!

Arduino
via Egeo 16
Torino, 10131
Italy