Hi I am using the Arduino Uno with this code and this circuit and I am trying to make it so that when I press the button it turns off and when I let go of the button it will turn on and then turn off after one second but now when I le go it blinks. How can I fix this.
comodomo:
Hi I am using the Arduino Uno with this code and this circuit and I am trying to make it so that when I press the button it turns off and when I let go of the button it will turn on and then turn off after one second but now when I le go it blinks. How can I fix this.
Your description is a bit unclear. "I am trying to make it so that when I press the button it turns off..." This means it was already on. "...when I let go of the button it will turn on and then turn off after one second..."
So, is this a one time event or, is there a next time for pushing the button?
dougp:
Your description is a bit unclear. "I am trying to make it so that when I press the button it turns off..." This means it was already on. "...when I let go of the button it will turn on and then turn off after one second..."
So, is this a one time event or, is there a next time for pushing the button?