i want to power a motor by hitting a switch which Begins a 5 second coundown timer. Within this 5 seconds I should press 2 more buttons which allow the motor to turn on. For safety purposes the motor will only run when i keep the second 2 buttons pressed. If I take my hand off either of the buttons (or both) or dont press both buttons together within the 5 second countdown then the system resets.
How do I do the countdown timer codeand how do I link it to the buttons in the way i have described?