hi
I want to print several variables which all of them are double , in same line. actually if I have a, b and c as variables what I want to show is
a b c
edit:
if I use
Delta_G:
Also can make Swiss cheese out of RAM because no garbage collection on little micro. Can crash programs and lock up boards and all that stuff.
I don't think that's true in this case. String p1 is never resized, and all other Strings that are created are temporaries. During the lifetime of these Strings, no other dynamic memory allocation happens, so no fragmentation happens.
But I do agree that it's not a good idea, even if it's not a problem in this specific case.
When I have to do a lot of printing, I use this PrintSteam utility library:
int a = 1, b = 2, c = 3;
Serial << a << ", " << b << ", " << c << endl;
This prints: 1, 2, 3
I also often use this Arduino-Debugging "library":