Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
Name  

endSerial()

   
Examples  
int val; 
void setup() { 
  beginSerial(); 
} 
void loop() { 
  background(val); 
} 
void serialEvent() { 
  val = serial; 
} 
void mousePressed() {		 
  endSerial();  // Stop the serial port when the mouse is pressed 
} 

Description   The endSerial() method must be called to close the serial port. It stops the serial port reading and writing activity.
   
Syntax  
endSerial()
   
Parameters  
 

   
Returns   None
   
Usage   Application
   
Related   beginSerial()
serialWrite()
serialEvent()
serial
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas