Skip to content

Instantly share code, notes, and snippets.

@choonewza
choonewza / size_of_datatype.ino
Last active January 26, 2020 18:25
Content CAT LoRa Lab13 - datatype size
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");
@choonewza
choonewza / MemoryFree1.ino
Created January 26, 2020 19:10
Content CAT LoRa Lab 12 - Memory Free 1
#include <MemoryFree.h> //https://github.com/mpflaga/Arduino-MemoryFree
void setup() {
Serial.begin(115200);
while(!Serial);
}
void loop() {
String *msg = new String("55555");
showFreeMemory();
#include "Screen.h"
Screen::~Screen()
{
delete this->screen;
}