how to store the button press values

an Arduino Program with 1 LEDs and 2 buttons
Button 1 : pressing the button Starts or stops reading the status of Button2.
Button 2 : Tap the button for any number of times.
The ON/OFF sequence of Button 2 should be the sequence seen in the LED.
E.g. If Button2 is pressed in following sequence ON-600 OFF-400 ON-500 OFF-3000, the LED should blink with same sequence.

assignment_6a.ino (886 Bytes)

You want us to do your homework for you?

Also post your code using the code markup, it’s the </> button. Not many people want to download code.