I'm just starting to do some basic programs with a potentiometer and the
function. And I was trying to find ways to increase the resolution say if I had an input of 2 to 3 volts or for a lower voltage input. I came across this function
AnalogReference(DEFAULT, INTERNAL, or EXTERNAL)
but it has either been modified since the function definition was written or I found something peculiar. When I used it as
I got an error message that it was not declared in the scope. So I added it as
but thought that I needed to set it equal to something. Through a few trials I found that if you set it equal to 10, and using the board 3.3 volt refence I can receive 1023 from the
the same as if I were using a 5 volt reference.
Just wanted to get someones thoughts on this. Is this function supposed to work like that?