Thank you Coding Badly! That worked.
You are welcome.
Can you please explain how you calculated number of bytes something takes
One character = one byte. Used grep
to extract the println
calls to a text file. Removed all but the string constants using a simple search-and-replace. Still using search-and-replaced changed the escapes (\n) to single characters. Resave the file to disk. Get the file-size from the operating system (in my case, Explorer).
and also what the F() statement does in:
Serial.println ( F( "\n\n''cycle_complete'' FUNCTION IS BEING EXECUTED\n\n" ) );
The F-macro causes the string to be stored exclusively in program memory (aka Flash or PROGMEM). The macro is defined here...https://github.com/arduino/Arduino/blob/master/hardware/arduino/cores/arduino/WString.h#L36