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.

4
  • I made an edit so hopefully it is easier to understand now. Commented Jan 3, 2017 at 21:07
  • @1fastk: It is still unclear whether the “stall in a loop” behavior is a desired feature or a bug in your code. Commented Jan 3, 2017 at 21:13
  • @EdgarBonet: Im not exactly sure what you mean by "stall in a loop" but what I am trying to achieve is to not have to have multiple digitalRead and digitalWrite statement for every element inside of the arrays. I want to just have only one digitalRead statement to read which button is HIGH inside of the array and then to have one digitalWrite statement to write the led HIGH of the same element. If the element 3 goes high on myButtonArray[] to write element 3 in the myLEDArray HIGH as well. I hope this make better since. Commented Jan 3, 2017 at 21:32
  • 1
    I mean that while the first button is HIGH, your program does not check the other buttons, as it is stuck inside a while loop. Commented Jan 3, 2017 at 21:41