Xinyuan-LilyGO / LilyGo-EPD47

GNU General Public License v3.0
379 stars 119 forks source link

Is it possible to handle long press on reset button #73

Closed BatsIhor closed 1 year ago

BatsIhor commented 2 years ago

Hi, I'm working on device that suppose to have only one button. For now I'm using reset to restart device and load latest info from internet, but sometimes users want to reset device to factory settings and I wonder if I can somehow handle long press on reset button so when it restarts it actually does factory settings reset.

Thank you

G6EJD commented 2 years ago

The Reset button is the device reset so it’s not possible, why not implement a combination of buttons or use one of the others if held for say 30-secs or whatever