Language | Libraries | Comparison

int serialRead()

Description

Reads a byte (a character) from the serial port.

Parameters

None

Returns

The next byte from the serial port, or -1 if there aren't any.

See also

Reference Home

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.