Tried running a code for a Simon says game, but lights won't turn on, button presses won't read and loops aren't engaged. For each round, the sequence of lights will be flashed. The light should be on for 1 second and no lights on for 0.5 seconds for each flash. Then player should duplicate the sequence on the buttons.Each time a player pushes a button the corresponding LED should light up. If the sequence is correct, wait for 2 seconds with both lights off before starting the next round. If the player completes all 10 rounds correctly, have all lights flash at a rate of 2 Hz. This will occur until one of the buttons is pressed, then the game will start over. If the player is incorrect for the sequence the lights should alternate between at a rate of 1 Hz. and should continue flashing until one of the buttons is pushed. Then the game should start all over
Final2.ino (4.41 KB)