potatotron
Well-known member
I'd like to keep track of the coin cell powering the Teensy 3.0 RTC. I can do this by connecting the battery's positive terminal to an analog pin and measuring with analogRead(), but I don't need to check it very often (once a day?).
The default state of a Teensy 3.0 pin is disabled so I have to explicitly set it to INPUT or OUTPUT to use it. Is there a way to re-disable it after taking a reading? If I can do that I think I will minimize battery power loss.
The default state of a Teensy 3.0 pin is disabled so I have to explicitly set it to INPUT or OUTPUT to use it. Is there a way to re-disable it after taking a reading? If I can do that I think I will minimize battery power loss.