Skip to content

Instantly share code, notes, and snippets.

@toya33
Created August 4, 2013 05:20
Show Gist options
  • Save toya33/6149272 to your computer and use it in GitHub Desktop.
Save toya33/6149272 to your computer and use it in GitHub Desktop.
arduinoメモリ調査用スケッチ 参考サイト  http://playground.arduino.cc/Code/AvailableMemory
#include <MemoryFree.h>
void setup(){
Serial.begin(115200);
}
void loop(){
Serial.print("before:freeMemory()=");
Serial.println(freeMemory());
void* p = malloc(1024);
Serial.print("after:freeMemory()=");
Serial.println(freeMemory());
delay(10000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment