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*

2
  • You want a for loop. Commented Jan 3, 2017 at 20:51
  • The AVR chip has operations that affect multiple pins at once, however this is guided/limited by their organization into ports at hardware level; the Arduino framework slaps numbers on these that bridge the divisions between the several distinct ports, and then gives you "one pin at a time" functions that hide all that detail. I don't believe there are any Arduino-type bulk methods short of using the individual methods in a loop, and targeting the actual AVR port registers is usually only recommended where speed, rather than cleanliness, is the goal. Commented Jan 4, 2017 at 19:34