Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep port config after sleep #4

Open
mamama1 opened this issue Jun 14, 2022 · 0 comments
Open

keep port config after sleep #4

mamama1 opened this issue Jun 14, 2022 · 0 comments

Comments

@mamama1
Copy link

mamama1 commented Jun 14, 2022

Hi,

is my assumption correct that as zpmPortDisableDigital() completely resets the port config of all pins to the power up state, one needs to either save the states first and reconfigure the ports after every wakeup?

also, what about an external button to wake up the MCU, would I need to attach the interrupt after disabling all pins so the button pin gets reconfigured as input? would it be advisable to use a hardware pullup resistor instead of the internal pullup?

basically I'm trying to build a device which deep sleeps with as lowest sleep current as possible but can be waked up by a button press or the internal RTC.

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant