Skip to content

Instantly share code, notes, and snippets.

@kakopappa
Created November 26, 2023 14:12
Show Gist options
  • Save kakopappa/5023e22594fd5871c4146be5847c4843 to your computer and use it in GitHub Desktop.
Save kakopappa/5023e22594fd5871c4146be5847c4843 to your computer and use it in GitHub Desktop.
Simplified for loop for Arduino
#define FOR_i(from, to) for(int i = (from); i < (to); i++)
FOR_i(1, 4) {
// do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment