How are the buttons wired?
It should be between the input and ground with the internal pull up resistors enabled in the pin mode statement.
How are the buttons wired?
It should be between the input and ground with the internal pull up resistors enabled in the pin mode statement.