Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • What have you done to try to understand the problem? Put some debug prints in, see where it's going wrong. Commented Apr 19, 2018 at 14:03
  • I have outputted the button states as well as the button state right before it checks the sequence along with the seq. In the serial monitor it will say button3 = 1 when I have not pressed any buttons since the start of the program. Commented Apr 19, 2018 at 14:25
  • the buttons in schema have pull-down resistors Commented Apr 19, 2018 at 18:49
  • That was one of the things I was thinking could be wrong since I declare the pinModes with INPUT_PULLUP. Should I instead just use INPUT? Or would it be more efficient to not have the pull down resistors? Commented Apr 19, 2018 at 18:55