Infinite Loop deepsleep_wakeup when Pin is hold High
-
Hi,
running this small piece of codemachine.pin_deepsleep_wakeup(['P8','P10'],1,True)
machine.deepsleep(300*1000)when I set P8 or P10 to 3.3 Volts, Fipy wake up, execute some code, and the go in deepsleep again. If the P8 or P10 are still at High level, the Fipy never go to deep sleep again! It goes in deepsleep mode but just entered it wake up again until i remove the 3.3 volts from the input pin above.
Do you have any suggestion?
Thanks, Andrea.
-
Hi,
The wake from deepsleep is done based on pin level rather than the rising or falling edge of the pins. One way around this is to add a small circuit between the source of the signal and the pin that creates a small pulse instead of keeping the pin high. An example can be found here: http://www.esp8266.com/viewtopic.php?p=39550#p39550