I'm writing a code to programme a game on a joystick potentiometer. When a button is pressed, one of four LEDs randomly lights up. The player must then press the joystick in the given direction. If they get it right, they get "Well done!". If they don't press the button quick enough, they get "Too slow". If they get it wrong, they get "Incorrect".
I'm having an issue with my "Incorrect" statement though. Here's the code for the UP direction:
I have a simple push button, connected to pin 6 and ground. The code ignores it completely, that is, regardless of whether the button is pressed, it runs continuously.