I have an 8266 that I put into deep sleep for battery saving purposes. It wakes up using a momentary switch that when pressed pulls RST low similar to #2 in this post. I want to have the following functionality, and I think I need an external circuit taking the button input and driving the RST line and possibly one other GPIO. Say a long press is 3 seconds and a short press is < 3 seconds.
# The goal
if deep sleeping, and long press wake up the 8266 (external wakeup so this would have to be RST pin pulling low)
if running, and short press reboot the 8266
if running, and long press have the 8266 go into deep sleep
What would you do if you wanted to make something like this? Thanks in advance, this forum is the best!
# The goal
if deep sleeping, and long press wake up the 8266 (external wakeup so this would have to be RST pin pulling low)
if running, and short press reboot the 8266
if running, and long press have the 8266 go into deep sleep
What would you do if you wanted to make something like this? Thanks in advance, this forum is the best!