Longpress detection for mode change
Posted: Mon Feb 15, 2021 8:46 pm
I am trying to make a presettable voltmeter. It will show voltage normally. But when it will exceed the SET value an LED will glow. I did it using a TOGGLE switch as MODE CHANGER. I want to ENTER the SET mode by pressing the OK & UP button together for 5 secs.
Other buttons in this program are
One UP button, one DOWN button, and an OK button that writes the SET value into EEPROM.
Please how can I enter into SET mode Longpress and EXIT by pressing the OK button.
Thank you
Other buttons in this program are
One UP button, one DOWN button, and an OK button that writes the SET value into EEPROM.
Please how can I enter into SET mode Longpress and EXIT by pressing the OK button.
Thank you