print multiple variables, same line?

Having some trouble,

I'd like to Print to serial, a number of variables on the same line, (B/c it's easier to track changes)

I woulda thought something like this would work... printf ("%d, %d, %d, %d, %d", 1Value, 2Value, , ,);

But I got nothin' :( Thanks for your time!

try Serial.printf ("%d, %d, %d, %d, %d", 1Value, 2Value, , ,);

error: 'class HardwareSerial' has no member named 'printf' ?

(I think I have stdio.h included)

did you Serial.begin(9600); in the setup?

Yeps, and I can/do report the variables on their own lines... but that's not readable at normal speed :(

read this post

(Thanks for all your help btw)

So I'm serial printing a string generated by sprintf?

I believe this is what you are trying to do.

#include <stdio.h>
int i = 0;
void setup() {

void loop() {
int a=5, b=3;
char buffer [50];
i=sprintf (buffer, ā€œ%d plus %d is %dā€, a, b, a+b);
for(int l= 0; l<=i; l++)

Beautiful :) I still don't fully understand strings, but it does exactly what I want,

Sorry for bumping this post just to say,


Thanks goes along way. What don't you understand about strings?

heh, nothin' I need help with, I'm just too lazy to learn it properly...

(This was a good kickoff point)