- Print format
Prints data to the serial port as human-readable ASCII text followed by a carriage return character (ASCII 13, or ‘\r’) and a newline character (ASCII 10, or ‘\n’).
Format: specifies the number base (for integral data types) or number of decimal places (for floating point types)
Example: reads an analog input on analog in 0, prints the value out.
- Serial read
Reads incoming serial data.
Returns the first byte of incoming serial data available (or -1 if no data is available) – int