Name

list()

Class

Serial

Description

Gets a list of all available serial ports. Use println() to write the information to the text window.

Examples

  • // Example by Tom Igoe
    
    import processing.serial.*;
    
    // The serial port
    Serial myPort;       
    
    // List all the available serial ports
    printArray(Serial.list());
     
    

Syntax

  • serial.list()

Parameters

  • serial(Serial) any variable of type Serial

Return

  • String[]