Go Down

Topic: Serial.print reference page ambiguity (Read 671 times) previous topic - next topic

Ran Talbott


The reference page for Serial.print (http://arduino.cc/en/Serial/Print) gives the impression that its argument is alwasy treated as an 8-bit value,  even though internally (at least as of version 0013) it's apparently being handled as a long (setting an int "x" to -1 and executing:
Code: [Select]
Serial.print(x, HEX);
produced "FFFFFFFF").


1. Change the phrase "b: the byte to print, or" to something like "b: the value to print, or".

2. Change one or more examples to print a value greater than 255.

3. Add a warning that values < 0 with HEX will produce 8-digit (rathern than the expected 2- or 4-digit) output.


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!

via Egeo 16
Torino, 10131