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
void setup() { | |
Serial.begin(115200); | |
while(!Serial); | |
Serial.println("Size of Variable"); | |
Serial.println(); | |
Serial.println(String("char = ") + sizeof(char) + " Byte"); | |
Serial.println(String("boolean = ") + sizeof(bool) + " Byte"); | |
Serial.println(String("short int = ") + sizeof(short int) + " Byte"); | |
Serial.println(String("long int = ") + sizeof(long int) + " Byte"); |
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
#include <MemoryFree.h> //https://github.com/mpflaga/Arduino-MemoryFree | |
void setup() { | |
Serial.begin(115200); | |
while(!Serial); | |
} | |
void loop() { | |
String *msg = new String("55555"); | |
showFreeMemory(); |
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
#include "Screen.h" | |
Screen::~Screen() | |
{ | |
delete this->screen; | |
} |
OlderNewer