Go Down

Topic: I2C communication between arduino and uvga (Read 1 time) previous topic - next topic

antho59

ok, i try this tomorrow.

you can explain me how to send multiple data by serial?

PaulS

Quote
you can explain me how to send multiple data by serial?

Code: [Select]
Serial.print("This");
Serial.print("is");
Serial.print("how");

antho59

if i do this i recover just the first value on the uvga

PaulS

Quote
if i do this i recover just the first value on the uvga

What is that value? "This" or "Thisishow"?

antho59

when i say value i want to say numeric value, i don't try char ascii

PaulS

You can do the same thing with numeric values.
int a=13, b=4572, c=-14;
Code: [Select]
Serial.print(a);
Serial.print(" ");
Serial.print(b);
Serial.print(" ");
Serial.print(c);


or
Code: [Select]
Serial.write(a);
Serial.write(b);
Serial.write(c);


Keep in mind that write()ing non-byte sized variables will result in multiple bytes being sent, and you must reassemble them in the correct order.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy