Created
April 12, 2018 04:07
-
-
Save acoomans/3bb61af040751c1a706fb2ee8885ecaf 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