| 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 |  | ### serialWrite()
Examples |  |
    byte[] data = { 'a', 'b', 'c', 'd', 'e', 'f' };
    void setup() {
      beginSerial();
    }
    void loop() {
      // Write the sequence stored in
      // the array data to the serial port
      serialWrite(data);
    }
Description |  | The serialWrite() method writes data to the serial port. This data can either be a single int or an array of bytes.
Syntax |  |
    serialWrite(data)
Parameters |  |
data |  | int or byte[]
Returns |  | None
Usage |  | Application
Related |  | beginSerial() endSerial() 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 |