Holding pins during deepsleep
-
Hello,
I am using this piece of code to hold a GPIO pin during deepsleep. I want the pin to be hold low when the board to deepsleep:
pin = Pin('P8', mode=Pin.OUT)
pin.value(0)
pin.hold(0)
machine.deepsleep()When I check P8 during deepsleep I can read a 3.3V.
Does anybody know a way to fix this? Is this working with only some GPIO pins? Which ones?
Thanks,
Pablo
-
@pablomargareto
I suppose that this is an error if it not work for you
i do not tested this yet but hold should preserve state also after reboot
@daniel can bring some light on it -
I think so. I did not find any pin that could be hold low during deepsleep mode.
@daniel can you show us some light here?
Thanks a lot,
Pablo
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login