Hello,
Posted a thread a few weeks ago that led to some good advice surrounding pressing and holding a push button to trigger another piece of code.
The debounce function was suggested as a plausible way to achieve this outcome - However, I am a complete electronics newb and couldn't get it to work!!!
Having spoken to my tutor he mentioned that the debounce feature was mainly useful in minimising the amount of lines of code and that wasn't really an issue for me.
He suggested writing a basic code that essentially used delays to "do the job" so basically using if statements with delays.
So what I am asking is does anyone know how (without any technical business) that you can add a press and hold function to an input (I need the button to be pressed for 5 seconds before activating the next piece of code).
Any help would be great.
Cheers.
Tom