Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Handy Arduino snippets. Obviously.
// Get the number of elements in an array.
// From Arduino FAQ:
#define elementsInArray(x) (sizeof(x) / sizeof(*x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment