happyharryh69
New Member
Hello There
I am trying in vain to design a program that will register a 10 pushes of a button and then light an led. This is a race between two players and the program needs to register both players key depressions at the same time.
The first player to light all of his 4 led's is the winner.
I'm having trouble in the starting process of registering the key presses and when 10 have been made on how to light the LED.
Is there away of storing each press of the button until it accumilates 10 presses and then lights the LED, or would it be better to store a value of 10 into a Flag and check against the flag each time the button is pressed.
Could someone please give me some help thanks
I am trying in vain to design a program that will register a 10 pushes of a button and then light an led. This is a race between two players and the program needs to register both players key depressions at the same time.
The first player to light all of his 4 led's is the winner.
I'm having trouble in the starting process of registering the key presses and when 10 have been made on how to light the LED.
Is there away of storing each press of the button until it accumilates 10 presses and then lights the LED, or would it be better to store a value of 10 into a Flag and check against the flag each time the button is pressed.
Could someone please give me some help thanks