Language \ Environment \ Comparison
 
Index
 
 
Sonic

The Processing serial library allows for easily reading and writing data to and from external machines. It allows two machines to communicate and gives you the flexibility to make your own microcontroller devices and use them as the input or output to your Processing programs.

The serial port is a nine pin I/O port that exists on most PCs and can be emulated through USB on Macintosh with the Keyspan USB Serial Adaptor.

beginSerial()
Opens the serial port for reading and writing.

endSerial()
Closes the serial port.

serialWrite()
Writes data to the serial port.

serialEvent()
This functions is called when there is new data to be read from the serial port.

serial
Variable containing the most recent data read from the serial port.

   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas