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)

    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?



  • 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,


  • @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

Pycom on Twitter

Looks like your connection to Pycom Forum was lost, please wait while we try to reconnect.