Problem with external wakeup

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Saito
Posts: 4
Joined: Mon Aug 27, 2018 8:03 am

Problem with external wakeup

Post by Saito » Thu Sep 20, 2018 2:56 am

Hi All,

I am trying to wakeup my ESP32 from deepsleep. below is my code:

Code: Select all

import machine
pin=machine.Pin(15)
pin.init(mode=pin.IN, pull=pin.PULL_UP)
pin.irq(trigger=machine.Pin.IRQ_FALLING, handler=lambda p:None)
machine.deepsleep(0)
However, no matter how I trigger PIN(15), it always stay in sleep mode. Any idea ?
I understand viewtopic.php?t=3900 is a sloution, but I want to do it from scratch.

Any suggestions are very appreciate.

Post Reply