Created
November 26, 2023 14:12
-
-
Save kakopappa/5023e22594fd5871c4146be5847c4843 to your computer and use it in GitHub Desktop.
Simplified for loop for Arduino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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