Created
September 5, 2017 21:02
-
-
Save rlogiacco/974024184c38ac7957cad437ea7dd433 to your computer and use it in GitHub Desktop.
Arduino free RAM
This file contains hidden or 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
int freeRam() { | |
extern int __heap_start, *__brkval; | |
int v; | |
return (int) &v - (__brkval == 0 ? (int) &__heap_start : (int) __brkval); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment