Preserve battery with Sleep ?
Topic: Preserve battery with Sleep ?
(Read 9733 times)
Re: Preserve battery with Sleep ?
Feb 07, 2012, 02:08 pm
I should have posted this last night but I was too tired. The problem is the Tx pin on NewSoftSerial because the idle state is HIGH which means the pin is still sourcing current when you put it too sleep. Simply changing the pinMode to input and disabling the internal pull up resistors seems to fix the issue. This would probably be a handy function to add to the sleep file, one function to scan all the digital ports, record their states and change them all to high impedance and then another wakeup function to restore the previous states. Any way... thanks for the help.