Created
December 1, 2022 16:43
-
-
Save brentmaxwell/e0809f49ad6d340118f01100f0abc6a2 to your computer and use it in GitHub Desktop.
quick header array size macro 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 ARRAY_SIZE(array) ((sizeof(array)) / (sizeof(array[0]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment