On a WeMos-D1-Mini ESP8266 development board there is one button - RST (reset)
Board can be rebooted after button press-release action.
While button is in a pressed state the application is still alive (i see terminal screen) but freezed
If i release a button than application reboots.
So i want to use long pressed state for clearing application settings.
How to catch pressed state reset button for more than 3 seconds?
How to check if RST button is pressed 3 seconds?
How to check if RST button is pressed 3 seconds?
Last edited by VladVons on Mon Feb 17, 2020 2:29 pm, edited 2 times in total.
Re: How to check if RST button is pressed 3 seconds?
If you push the reset button the device stops working and will do a complete restart when you release the button, comparable to a power cycle. That is a good hardware mechanism and not under control of any software.