I'm trying to develop a code to turn on a single relay for a specific amount of time, with only a push button, where while making a long press, the time is recorded into EEPROM and where a simple one-touch of the same button will, therefore, activate as if were pressed for the same amount of time than the long press.
I've looked into millis() for some similar action but nothing quite like this came up.
if someone could help me to write this code would be appreciated.
hope that I had expressed correctly.
thanks
yeah, I've done that already, thanks but that doesn't tell me how to measure the pressed time