From 11608c4dcf439ae08fbad726ace9f4df207ab7bd Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 6 Jul 2018 17:18:47 +0100 Subject: [PATCH] Add sizeof test --- SizeOfTest/SizeOfTest.ino | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 SizeOfTest/SizeOfTest.ino diff --git a/SizeOfTest/SizeOfTest.ino b/SizeOfTest/SizeOfTest.ino new file mode 100644 index 0000000..2fd01c3 --- /dev/null +++ b/SizeOfTest/SizeOfTest.ino @@ -0,0 +1,16 @@ +void setup() { + Serial.begin(9600); + + Serial.print("Size of int: "); + Serial.println(sizeof(int)); + + Serial.print("Size of float: "); + Serial.println(sizeof(float)); + + Serial.print("Size of bool: "); + Serial.println(sizeof(bool)); +} + +void loop() { + +}