Hey,
When I do an analogRead() on my Teensy 3.1 and 3.2, I never read a value of 0... for example at 12-bit resolution, grounding the pin gives me a value of 1, connecting it to 3.3V gives me a value of 4095. If I set analogReadResolution() to a value that's not native (i.e. 11-bits, 9-bits, etc), I get 0, but that's just because the library right shifts to get it to my requested resolution (1>>1=0).
Anyone else have this problem? Am I doing something wrong? Is there some limitation that I'm unaware of?
Thanks,
Pat
When I do an analogRead() on my Teensy 3.1 and 3.2, I never read a value of 0... for example at 12-bit resolution, grounding the pin gives me a value of 1, connecting it to 3.3V gives me a value of 4095. If I set analogReadResolution() to a value that's not native (i.e. 11-bits, 9-bits, etc), I get 0, but that's just because the library right shifts to get it to my requested resolution (1>>1=0).
Anyone else have this problem? Am I doing something wrong? Is there some limitation that I'm unaware of?
Thanks,
Pat