How do you serial.write a byte like I can for an int?

I can do "Serial.write(integer)" and it works, but any other type of number like a uint_8 or a byte prints nothing to my serial monitor, what a I missing? In any other language, I would cast it like "Serial.write(string(integer))". What's the trick in this language?

I think the trick is to use Serial.print or Serial.println instead.

The others are probably just ending up with non-printable characters.

Use Serial.print() to print to the screen.
Use Serial.write() to send byte commands to the screen to do things such as move the cursor and clear the screen.

Good luck.

If I got it right...

say that you have this:

uint8_t variable = 56; //this is really an unsigned char.

and if you print it you get on your terminal window the character 8. But in reality, you wanted to print 56. You'd then, if I'm right, use:

Serial.println((int)variable);

Give it a try and post the results.

Great, that worked, thanks! Just cast a byte or a uint to an integer and use Serial.Print.

Or

  uint8_t n = 56;
  Serial.println(n,DEC);

EmilyJane:

  uint8_t n = 56;

Serial.println(n,DEC);

This is a good and clear way to do things but also requires overloaded function println(byte,byte), adding a little bit of fat to the over compiled code size so I prefer the Serial.println((int)n);