Serial

The Serial library is for reading and writing data to and from external devices one byte at a time. It allows two computers to send and receive data. This library has the flexibility to communicate with custom microcontroller devices and to use them as the input or output to Processing programs. The serial port is a nine pin I/O port that exists on many PCs and can be emulated through USB.

Issues with the Serial Library and specific platforms are documented on the Processing Wiki.

Serial Event

serialEvent()